<?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="ExampleModel.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="ExampleModelStoreContainer">
<EntitySet Name="Category" EntityType="ExampleModel.Store.Category" store:Type="Tables" Schema="dbo" />
<EntitySet Name="Product" EntityType="ExampleModel.Store.Product" store:Type="Tables" Schema="dbo" />
<AssociationSet Name="FK_Product_Category" Association="ExampleModel.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>
<Association Name="FK_Product_Category">
<End Role="Category" Type="ExampleModel.Store.Category" Multiplicity="0..1" />
<End Role="Product" Type="ExampleModel.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="ExampleModel" Alias="Self" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns="http://schemas.microsoft.com/ado/2008/09/edm">
<EntityContainer Name="ExampleEntities" annotation:LazyLoadingEnabled="true">
<EntitySet Name="Categories" EntityType="ExampleModel.Category" />
<EntitySet Name="Products" EntityType="ExampleModel.Product" />
<AssociationSet Name="FK_Product_Category" Association="ExampleModel.FK_Product_Category">
<End Role="Category" EntitySet="Categories" />
<End Role="Product" EntitySet="Products" />
</AssociationSet>
</EntityContainer>
<EntityType Name="Category">
<Key>
<PropertyRef Name="CategoryId" />
</Key>
<Property Name="CategoryId" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="CategoryName" Type="String" MaxLength="50" Unicode="false" FixedLength="false" />
<NavigationProperty Name="Products" Relationship="ExampleModel.FK_Product_Category" FromRole="Category" ToRole="Product" />
</EntityType>
<EntityType Name="Product">
<Key>
<PropertyRef Name="ProductId" />
</Key>
<Property Name="ProductId" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="ProductName" Type="String" MaxLength="50" Unicode="false" FixedLength="false" />
<Property Name="SalesPrice" Type="Double" />
<Property Name="CategoryId" Type="Int64" />
<NavigationProperty Name="Category" Relationship="ExampleModel.FK_Product_Category" FromRole="Product" ToRole="Category" />
</EntityType>
<Association Name="FK_Product_Category">
<End Role="Category" Type="ExampleModel.Category" Multiplicity="0..1" />
<End Role="Product" Type="ExampleModel.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="ExampleModelStoreContainer" CdmEntityContainer="ExampleEntities">
<EntitySetMapping Name="Categories"><EntityTypeMapping TypeName="ExampleModel.Category"><MappingFragment StoreEntitySet="Category">
<ScalarProperty Name="CategoryId" ColumnName="CategoryId" />
<ScalarProperty Name="CategoryName" ColumnName="CategoryName" />
</MappingFragment></EntityTypeMapping></EntitySetMapping>
<EntitySetMapping Name="Products"><EntityTypeMapping TypeName="ExampleModel.Product"><MappingFragment StoreEntitySet="Product">
<ScalarProperty Name="ProductId" ColumnName="ProductId" />
<ScalarProperty Name="ProductName" ColumnName="ProductName" />
<ScalarProperty Name="SalesPrice" ColumnName="SalesPrice" />
<ScalarProperty Name="CategoryId" ColumnName="CategoryId" />
</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="ExampleModel">
<EntityTypeShape EntityType="ExampleModel.Category" Width="1.5" PointX="0.625" PointY="0.5" Height="1.5956835937500002" IsExpanded="true" />
<EntityTypeShape EntityType="ExampleModel.Product" Width="1.5" PointX="3.5" PointY="0.5" Height="1.9802864583333335" IsExpanded="true" />
<AssociationConnector Association="ExampleModel.FK_Product_Category" ManuallyRouted="false">
<ConnectorPoint PointX="2.125" PointY="1.2978417968750002" />
<ConnectorPoint PointX="3.5" PointY="1.2978417968750002" />
</AssociationConnector>
</Diagram>
</Diagrams>
</Designer>
</edmx:Edmx>
Dosyayı İndir