<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="2.0" xmlns:edmx="http://schemas.microsoft.com/ado/2008/10/edmx">
<!-- EF Runtime content -->
<edmx:Runtime>
<!-- SSDL content -->
<edmx:StorageModels>
<Schema Namespace="MvcEntityDBModel.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2008" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/02/edm/ssdl">
<EntityContainer Name="MvcEntityDBModelStoreContainer">
<EntitySet Name="Category" EntityType="MvcEntityDBModel.Store.Category" store:Type="Tables" Schema="dbo" />
<EntitySet Name="Product" EntityType="MvcEntityDBModel.Store.Product" store:Type="Tables" Schema="dbo" />
<EntitySet Name="Sample" EntityType="MvcEntityDBModel.Store.Sample" store:Type="Tables" Schema="dbo" />
<AssociationSet Name="FK_Product_Category" Association="MvcEntityDBModel.Store.FK_Product_Category">
<End Role="Category" EntitySet="Category" />
<End Role="Product" EntitySet="Product" />
</AssociationSet>
</EntityContainer>
<EntityType Name="Category">
<Key>
<PropertyRef Name="CategoryId" />
</Key>
<Property Name="CategoryId" Type="bigint" Nullable="false" StoreGeneratedPattern="Identity" />
<Property Name="CategoryName" Type="varchar" MaxLength="50" />
</EntityType>
<EntityType Name="Product">
<Key>
<PropertyRef Name="ProductId" />
</Key>
<Property Name="ProductId" Type="bigint" Nullable="false" StoreGeneratedPattern="Identity" />
<Property Name="ProductName" Type="varchar" MaxLength="50" />
<Property Name="SalesPrice" Type="float" />
<Property Name="CategoryId" Type="bigint" />
</EntityType>
<EntityType Name="Sample">
<Key>
<PropertyRef Name="SampleId" />
</Key>
<Property Name="SampleId" Type="bigint" Nullable="false" StoreGeneratedPattern="Identity" />
<Property Name="SampleName" Type="varchar" MaxLength="50" />
<Property Name="SampleValue" Type="float" />
</EntityType>
<Association Name="FK_Product_Category">
<End Role="Category" Type="MvcEntityDBModel.Store.Category" Multiplicity="0..1" />
<End Role="Product" Type="MvcEntityDBModel.Store.Product" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Category">
<PropertyRef Name="CategoryId" />
</Principal>
<Dependent Role="Product">
<PropertyRef Name="CategoryId" />
</Dependent>
</ReferentialConstraint>
</Association>
</Schema></edmx:StorageModels>
<!-- CSDL content -->
<edmx:ConceptualModels>
<Schema Namespace="MvcEntityDBModel" Alias="Self" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns="http://schemas.microsoft.com/ado/2008/09/edm">
<EntityContainer Name="SampleEntities" annotation:LazyLoadingEnabled="true">
<EntitySet Name="Samples" EntityType="MvcEntityDBModel.Sample" />
<EntitySet Name="Categories" EntityType="MvcEntityDBModel.Category" />
<EntitySet Name="Products" EntityType="MvcEntityDBModel.Product" />
<AssociationSet Name="FK_Product_Category" Association="MvcEntityDBModel.FK_Product_Category">
<End Role="Category" EntitySet="Categories" />
<End Role="Product" EntitySet="Products" />
</AssociationSet>
</EntityContainer>
<EntityType Name="Sample">
<Key>
<PropertyRef Name="SampleId" />
</Key>
<Property Name="SampleId" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="SampleName" Type="String" MaxLength="50" Unicode="false" FixedLength="false" />
<Property Name="SampleValue" Type="Double" />
</EntityType>
<EntityType Name="Category">
<Key>
<PropertyRef Name="CategoryId" />
</Key>
<Property Type="Int64" Name="CategoryId" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Type="String" Name="CategoryName" MaxLength="50" FixedLength="false" Unicode="false" />
<NavigationProperty Name="Products" Relationship="MvcEntityDBModel.FK_Product_Category" FromRole="Category" ToRole="Product" />
</EntityType>
<EntityType Name="Product">
<Key>
<PropertyRef Name="ProductId" />
</Key>
<Property Type="Int64" Name="ProductId" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Type="String" Name="ProductName" MaxLength="50" FixedLength="false" Unicode="false" />
<Property Type="Double" Name="SalesPrice" />
<Property Type="Int64" Name="CategoryId" />
<NavigationProperty Name="Category" Relationship="MvcEntityDBModel.FK_Product_Category" FromRole="Product" ToRole="Category" />
</EntityType>
<Association Name="FK_Product_Category">
<End Type="MvcEntityDBModel.Category" Role="Category" Multiplicity="0..1" />
<End Type="MvcEntityDBModel.Product" Role="Product" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Category">
<PropertyRef Name="CategoryId" />
</Principal>
<Dependent Role="Product">
<PropertyRef Name="CategoryId" />
</Dependent>
</ReferentialConstraint>
</Association>
</Schema>
</edmx:ConceptualModels>
<!-- C-S mapping content -->
<edmx:Mappings>
<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2008/09/mapping/cs">
<EntityContainerMapping StorageEntityContainer="MvcEntityDBModelStoreContainer" CdmEntityContainer="SampleEntities">
<EntitySetMapping Name="Samples"><EntityTypeMapping TypeName="MvcEntityDBModel.Sample"><MappingFragment StoreEntitySet="Sample">
<ScalarProperty Name="SampleId" ColumnName="SampleId" />
<ScalarProperty Name="SampleName" ColumnName="SampleName" />
<ScalarProperty Name="SampleValue" ColumnName="SampleValue" />
</MappingFragment></EntityTypeMapping></EntitySetMapping>
<EntitySetMapping Name="Categories">
<EntityTypeMapping TypeName="MvcEntityDBModel.Category">
<MappingFragment StoreEntitySet="Category">
<ScalarProperty Name="CategoryName" ColumnName="CategoryName" />
<ScalarProperty Name="CategoryId" ColumnName="CategoryId" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Products">
<EntityTypeMapping TypeName="MvcEntityDBModel.Product">
<MappingFragment StoreEntitySet="Product">
<ScalarProperty Name="CategoryId" ColumnName="CategoryId" />
<ScalarProperty Name="SalesPrice" ColumnName="SalesPrice" />
<ScalarProperty Name="ProductName" ColumnName="ProductName" />
<ScalarProperty Name="ProductId" ColumnName="ProductId" />
</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/2008/10/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" />
</DesignerInfoPropertySet>
</Options>
<!-- Diagram content (shape and connector positions) -->
<Diagrams>
<Diagram Name="SampleModel">
<EntityTypeShape EntityType="MvcEntityDBModel.Sample" Width="1.5" PointX="0.75" PointY="0.75" Height="1.59568359375" IsExpanded="true" />
<EntityTypeShape EntityType="MvcEntityDBModel.Category" Width="1.5" PointX="3.375" PointY="1.125" Height="1.5956835937499996" />
<EntityTypeShape EntityType="MvcEntityDBModel.Product" Width="1.5" PointX="5.625" PointY="0.875" Height="1.9802864583333335" />
<AssociationConnector Association="MvcEntityDBModel.FK_Product_Category" >
<ConnectorPoint PointX="4.875" PointY="1.9228417968749998" />
<ConnectorPoint PointX="5.625" PointY="1.9228417968749998" />
</AssociationConnector>
</Diagram>
</Diagrams>
</Designer>
</edmx:Edmx>
Dosyayı İndir