Add project files.
This commit is contained in:
208
test/Models/Model1.edmx
Normal file
208
test/Models/Model1.edmx
Normal file
@ -0,0 +1,208 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
|
||||
<!-- EF Runtime content -->
|
||||
<edmx:Runtime>
|
||||
<!-- SSDL content -->
|
||||
<edmx:StorageModels>
|
||||
<Schema Namespace="testModel.Store" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
|
||||
<EntityType Name="Category">
|
||||
<Key>
|
||||
<PropertyRef Name="Category_ID" />
|
||||
</Key>
|
||||
<Property Name="Category_ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
||||
<Property Name="Category_ParentID" Type="int" Nullable="false" />
|
||||
<Property Name="Catgegory_Title" Type="nvarchar" MaxLength="100" />
|
||||
</EntityType>
|
||||
<EntityType Name="IMG">
|
||||
<Key>
|
||||
<PropertyRef Name="IMG_ID" />
|
||||
</Key>
|
||||
<Property Name="IMG_ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
||||
<Property Name="IMG_SRC" Type="nvarchar(max)" Nullable="false" />
|
||||
<Property Name="IMG_Type" Type="nvarchar" MaxLength="50" Nullable="false" />
|
||||
</EntityType>
|
||||
<EntityType Name="News">
|
||||
<Key>
|
||||
<PropertyRef Name="News_ID" />
|
||||
</Key>
|
||||
<Property Name="News_ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
||||
<Property Name="News_Title" Type="nvarchar" MaxLength="100" Nullable="false" />
|
||||
<Property Name="News_Description" Type="nvarchar(max)" Nullable="false" />
|
||||
<Property Name="News_Summary" Type="nvarchar(max)" Nullable="false" />
|
||||
<Property Name="News_Category" Type="nvarchar(max)" Nullable="false" />
|
||||
<Property Name="News_Tag" Type="nvarchar(max)" Nullable="false" />
|
||||
<Property Name="News_Date" Type="datetime2" Precision="7" Nullable="false" />
|
||||
<Property Name="News_CreateDate" Type="datetime2" Precision="7" Nullable="false" />
|
||||
<Property Name="News_EditDate" Type="datetime2" Precision="7" />
|
||||
<Property Name="News_IMG" Type="int" Nullable="false" />
|
||||
</EntityType>
|
||||
<EntityType Name="Tag">
|
||||
<Key>
|
||||
<PropertyRef Name="Tag_ID" />
|
||||
</Key>
|
||||
<Property Name="Tag_ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
||||
<Property Name="Tag_Title" Type="nvarchar" MaxLength="100" Nullable="false" />
|
||||
</EntityType>
|
||||
<EntityType Name="User">
|
||||
<Key>
|
||||
<PropertyRef Name="User_ID" />
|
||||
</Key>
|
||||
<Property Name="User_ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
|
||||
<Property Name="User_Name" Type="nvarchar" MaxLength="100" />
|
||||
<Property Name="User_LastName" Type="nchar" MaxLength="100" />
|
||||
<Property Name="User_PhoneNumber" Type="nvarchar" MaxLength="12" />
|
||||
<Property Name="User_Password" Type="nvarchar(max)" />
|
||||
<Property Name="User_Status" Type="bit" Nullable="false" />
|
||||
</EntityType>
|
||||
<EntityContainer Name="testModelStoreContainer">
|
||||
<EntitySet Name="Category" EntityType="Self.Category" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="IMG" EntityType="Self.IMG" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="News" EntityType="Self.News" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="Tag" EntityType="Self.Tag" Schema="dbo" store:Type="Tables" />
|
||||
<EntitySet Name="User" EntityType="Self.User" Schema="dbo" store:Type="Tables" />
|
||||
</EntityContainer>
|
||||
</Schema>
|
||||
</edmx:StorageModels>
|
||||
<!-- CSDL content -->
|
||||
<edmx:ConceptualModels>
|
||||
<Schema Namespace="testModel" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
|
||||
<EntityType Name="Category">
|
||||
<Key>
|
||||
<PropertyRef Name="Category_ID" />
|
||||
</Key>
|
||||
<Property Name="Category_ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
||||
<Property Name="Category_ParentID" Type="Int32" Nullable="false" />
|
||||
<Property Name="Catgegory_Title" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
|
||||
</EntityType>
|
||||
<EntityType Name="IMG">
|
||||
<Key>
|
||||
<PropertyRef Name="IMG_ID" />
|
||||
</Key>
|
||||
<Property Name="IMG_ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
||||
<Property Name="IMG_SRC" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
|
||||
<Property Name="IMG_Type" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
|
||||
</EntityType>
|
||||
<EntityType Name="News">
|
||||
<Key>
|
||||
<PropertyRef Name="News_ID" />
|
||||
</Key>
|
||||
<Property Name="News_ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
||||
<Property Name="News_Title" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
|
||||
<Property Name="News_Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
|
||||
<Property Name="News_Summary" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
|
||||
<Property Name="News_Category" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
|
||||
<Property Name="News_Tag" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
|
||||
<Property Name="News_Date" Type="DateTime" Nullable="false" Precision="7" />
|
||||
<Property Name="News_CreateDate" Type="DateTime" Nullable="false" Precision="7" />
|
||||
<Property Name="News_EditDate" Type="DateTime" Precision="7" />
|
||||
<Property Name="News_IMG" Type="Int32" Nullable="false" />
|
||||
</EntityType>
|
||||
<EntityType Name="Tag">
|
||||
<Key>
|
||||
<PropertyRef Name="Tag_ID" />
|
||||
</Key>
|
||||
<Property Name="Tag_ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
||||
<Property Name="Tag_Title" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
|
||||
</EntityType>
|
||||
<EntityType Name="User">
|
||||
<Key>
|
||||
<PropertyRef Name="User_ID" />
|
||||
</Key>
|
||||
<Property Name="User_ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
||||
<Property Name="User_Name" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
|
||||
<Property Name="User_LastName" Type="String" MaxLength="100" FixedLength="true" Unicode="true" />
|
||||
<Property Name="User_PhoneNumber" Type="String" MaxLength="12" FixedLength="false" Unicode="true" />
|
||||
<Property Name="User_Password" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
|
||||
<Property Name="User_Status" Type="Boolean" Nullable="false" />
|
||||
</EntityType>
|
||||
<EntityContainer Name="testEntities" annotation:LazyLoadingEnabled="true">
|
||||
<EntitySet Name="Categories" EntityType="Self.Category" />
|
||||
<EntitySet Name="IMGs" EntityType="Self.IMG" />
|
||||
<EntitySet Name="News" EntityType="Self.News" />
|
||||
<EntitySet Name="Tags" EntityType="Self.Tag" />
|
||||
<EntitySet Name="Users" EntityType="Self.User" />
|
||||
</EntityContainer>
|
||||
</Schema>
|
||||
</edmx:ConceptualModels>
|
||||
<!-- C-S mapping content -->
|
||||
<edmx:Mappings>
|
||||
<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
|
||||
<EntityContainerMapping StorageEntityContainer="testModelStoreContainer" CdmEntityContainer="testEntities">
|
||||
<EntitySetMapping Name="Categories">
|
||||
<EntityTypeMapping TypeName="testModel.Category">
|
||||
<MappingFragment StoreEntitySet="Category">
|
||||
<ScalarProperty Name="Category_ID" ColumnName="Category_ID" />
|
||||
<ScalarProperty Name="Category_ParentID" ColumnName="Category_ParentID" />
|
||||
<ScalarProperty Name="Catgegory_Title" ColumnName="Catgegory_Title" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="IMGs">
|
||||
<EntityTypeMapping TypeName="testModel.IMG">
|
||||
<MappingFragment StoreEntitySet="IMG">
|
||||
<ScalarProperty Name="IMG_ID" ColumnName="IMG_ID" />
|
||||
<ScalarProperty Name="IMG_SRC" ColumnName="IMG_SRC" />
|
||||
<ScalarProperty Name="IMG_Type" ColumnName="IMG_Type" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="News">
|
||||
<EntityTypeMapping TypeName="testModel.News">
|
||||
<MappingFragment StoreEntitySet="News">
|
||||
<ScalarProperty Name="News_ID" ColumnName="News_ID" />
|
||||
<ScalarProperty Name="News_Title" ColumnName="News_Title" />
|
||||
<ScalarProperty Name="News_Description" ColumnName="News_Description" />
|
||||
<ScalarProperty Name="News_Summary" ColumnName="News_Summary" />
|
||||
<ScalarProperty Name="News_Category" ColumnName="News_Category" />
|
||||
<ScalarProperty Name="News_Tag" ColumnName="News_Tag" />
|
||||
<ScalarProperty Name="News_Date" ColumnName="News_Date" />
|
||||
<ScalarProperty Name="News_CreateDate" ColumnName="News_CreateDate" />
|
||||
<ScalarProperty Name="News_EditDate" ColumnName="News_EditDate" />
|
||||
<ScalarProperty Name="News_IMG" ColumnName="News_IMG" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="Tags">
|
||||
<EntityTypeMapping TypeName="testModel.Tag">
|
||||
<MappingFragment StoreEntitySet="Tag">
|
||||
<ScalarProperty Name="Tag_ID" ColumnName="Tag_ID" />
|
||||
<ScalarProperty Name="Tag_Title" ColumnName="Tag_Title" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
<EntitySetMapping Name="Users">
|
||||
<EntityTypeMapping TypeName="testModel.User">
|
||||
<MappingFragment StoreEntitySet="User">
|
||||
<ScalarProperty Name="User_ID" ColumnName="User_ID" />
|
||||
<ScalarProperty Name="User_Name" ColumnName="User_Name" />
|
||||
<ScalarProperty Name="User_LastName" ColumnName="User_LastName" />
|
||||
<ScalarProperty Name="User_PhoneNumber" ColumnName="User_PhoneNumber" />
|
||||
<ScalarProperty Name="User_Password" ColumnName="User_Password" />
|
||||
<ScalarProperty Name="User_Status" ColumnName="User_Status" />
|
||||
</MappingFragment>
|
||||
</EntityTypeMapping>
|
||||
</EntitySetMapping>
|
||||
</EntityContainerMapping>
|
||||
</Mapping>
|
||||
</edmx:Mappings>
|
||||
</edmx:Runtime>
|
||||
<!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
|
||||
<Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
|
||||
<Connection>
|
||||
<DesignerInfoPropertySet>
|
||||
<DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
|
||||
</DesignerInfoPropertySet>
|
||||
</Connection>
|
||||
<Options>
|
||||
<DesignerInfoPropertySet>
|
||||
<DesignerProperty Name="ValidateOnBuild" Value="true" />
|
||||
<DesignerProperty Name="EnablePluralization" Value="true" />
|
||||
<DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
|
||||
<DesignerProperty Name="UseLegacyProvider" Value="false" />
|
||||
<DesignerProperty Name="CodeGenerationStrategy" Value="None" />
|
||||
</DesignerInfoPropertySet>
|
||||
</Options>
|
||||
<!-- Diagram content (shape and connector positions) -->
|
||||
<Diagrams></Diagrams>
|
||||
</Designer>
|
||||
</edmx:Edmx>
|
||||
Reference in New Issue
Block a user