123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267 |
- <?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="Хранилище TestProductModel" 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="Basket">
- <Key>
- <PropertyRef Name="Id" />
- </Key>
- <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Price" Type="float" Nullable="false" />
- <Property Name="CountProduct" Type="int" Nullable="false" />
- <Property Name="IdPickPoint" Type="int" Nullable="false" />
- <Property Name="Date" Type="date" />
- </EntityType>
- <EntityType Name="PickPoint">
- <Key>
- <PropertyRef Name="Id" />
- </Key>
- <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Kind" Type="nvarchar(max)" Nullable="false" />
- </EntityType>
- <EntityType Name="Product">
- <Key>
- <PropertyRef Name="Id" />
- </Key>
- <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="ProductName" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="ProductDescription" Type="nvarchar(max)" />
- <Property Name="ProductPhoto" Type="nvarchar(max)" />
- <Property Name="ProductCost" Type="float" Nullable="false" />
- <Property Name="ProductDiscount" Type="int" />
- </EntityType>
- <EntityType Name="ProductBaskets">
- <Key>
- <PropertyRef Name="Id" />
- </Key>
- <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="IdProduct" Type="int" Nullable="false" />
- <Property Name="IdBasket" Type="int" Nullable="false" />
- </EntityType>
- <Association Name="FK_Basket_PickPoint">
- <End Role="PickPoint" Type="Self.PickPoint" Multiplicity="1" />
- <End Role="Basket" Type="Self.Basket" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="PickPoint">
- <PropertyRef Name="Id" />
- </Principal>
- <Dependent Role="Basket">
- <PropertyRef Name="IdPickPoint" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ProductBaskets_Basket">
- <End Role="Basket" Type="Self.Basket" Multiplicity="1" />
- <End Role="ProductBaskets" Type="Self.ProductBaskets" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Basket">
- <PropertyRef Name="Id" />
- </Principal>
- <Dependent Role="ProductBaskets">
- <PropertyRef Name="IdBasket" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ProductBaskets_Product">
- <End Role="Product" Type="Self.Product" Multiplicity="1" />
- <End Role="ProductBaskets" Type="Self.ProductBaskets" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Product">
- <PropertyRef Name="Id" />
- </Principal>
- <Dependent Role="ProductBaskets">
- <PropertyRef Name="IdProduct" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="Хранилище TestProductModelContainer">
- <EntitySet Name="Basket" EntityType="Self.Basket" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="PickPoint" EntityType="Self.PickPoint" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Product" EntityType="Self.Product" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="ProductBaskets" EntityType="Self.ProductBaskets" Schema="dbo" store:Type="Tables" />
- <AssociationSet Name="FK_Basket_PickPoint" Association="Self.FK_Basket_PickPoint">
- <End Role="PickPoint" EntitySet="PickPoint" />
- <End Role="Basket" EntitySet="Basket" />
- </AssociationSet>
- <AssociationSet Name="FK_ProductBaskets_Basket" Association="Self.FK_ProductBaskets_Basket">
- <End Role="Basket" EntitySet="Basket" />
- <End Role="ProductBaskets" EntitySet="ProductBaskets" />
- </AssociationSet>
- <AssociationSet Name="FK_ProductBaskets_Product" Association="Self.FK_ProductBaskets_Product">
- <End Role="Product" EntitySet="Product" />
- <End Role="ProductBaskets" EntitySet="ProductBaskets" />
- </AssociationSet>
- </EntityContainer>
- </Schema></edmx:StorageModels>
- <!-- CSDL content -->
- <edmx:ConceptualModels>
- <Schema Namespace="TestProductModel" 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">
- <EntityContainer Name="TestProductEntities" annotation:LazyLoadingEnabled="true">
- <EntitySet Name="Basket" EntityType="TestProductModel.Basket" />
- <EntitySet Name="PickPoint" EntityType="TestProductModel.PickPoint" />
- <EntitySet Name="Product" EntityType="TestProductModel.Product" />
- <EntitySet Name="ProductBaskets" EntityType="TestProductModel.ProductBaskets" />
- <AssociationSet Name="FK_Basket_PickPoint" Association="TestProductModel.FK_Basket_PickPoint">
- <End Role="PickPoint" EntitySet="PickPoint" />
- <End Role="Basket" EntitySet="Basket" />
- </AssociationSet>
- <AssociationSet Name="FK_ProductBaskets_Basket" Association="TestProductModel.FK_ProductBaskets_Basket">
- <End Role="Basket" EntitySet="Basket" />
- <End Role="ProductBaskets" EntitySet="ProductBaskets" />
- </AssociationSet>
- <AssociationSet Name="FK_ProductBaskets_Product" Association="TestProductModel.FK_ProductBaskets_Product">
- <End Role="Product" EntitySet="Product" />
- <End Role="ProductBaskets" EntitySet="ProductBaskets" />
- </AssociationSet>
- </EntityContainer>
- <EntityType Name="Basket">
- <Key>
- <PropertyRef Name="Id" />
- </Key>
- <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Price" Type="Double" Nullable="false" />
- <Property Name="CountProduct" Type="Int32" Nullable="false" />
- <Property Name="IdPickPoint" Type="Int32" Nullable="false" />
- <Property Name="Date" Type="DateTime" Precision="0" />
- <NavigationProperty Name="PickPoint" Relationship="TestProductModel.FK_Basket_PickPoint" FromRole="Basket" ToRole="PickPoint" />
- <NavigationProperty Name="ProductBaskets" Relationship="TestProductModel.FK_ProductBaskets_Basket" FromRole="Basket" ToRole="ProductBaskets" />
- </EntityType>
- <EntityType Name="PickPoint">
- <Key>
- <PropertyRef Name="Id" />
- </Key>
- <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Kind" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="Basket" Relationship="TestProductModel.FK_Basket_PickPoint" FromRole="PickPoint" ToRole="Basket" />
- </EntityType>
- <EntityType Name="Product">
- <Key>
- <PropertyRef Name="Id" />
- </Key>
- <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="ProductName" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
- <Property Name="ProductDescription" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
- <Property Name="ProductPhoto" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
- <Property Name="ProductCost" Type="Double" Nullable="false" />
- <Property Name="ProductDiscount" Type="Int32" />
- <NavigationProperty Name="ProductBaskets" Relationship="TestProductModel.FK_ProductBaskets_Product" FromRole="Product" ToRole="ProductBaskets" />
- </EntityType>
- <EntityType Name="ProductBaskets">
- <Key>
- <PropertyRef Name="Id" />
- </Key>
- <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="IdProduct" Type="Int32" Nullable="false" />
- <Property Name="IdBasket" Type="Int32" Nullable="false" />
- <NavigationProperty Name="Basket" Relationship="TestProductModel.FK_ProductBaskets_Basket" FromRole="ProductBaskets" ToRole="Basket" />
- <NavigationProperty Name="Product" Relationship="TestProductModel.FK_ProductBaskets_Product" FromRole="ProductBaskets" ToRole="Product" />
- </EntityType>
- <Association Name="FK_Basket_PickPoint">
- <End Type="TestProductModel.PickPoint" Role="PickPoint" Multiplicity="1" />
- <End Type="TestProductModel.Basket" Role="Basket" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="PickPoint">
- <PropertyRef Name="Id" />
- </Principal>
- <Dependent Role="Basket">
- <PropertyRef Name="IdPickPoint" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ProductBaskets_Basket">
- <End Type="TestProductModel.Basket" Role="Basket" Multiplicity="1" />
- <End Type="TestProductModel.ProductBaskets" Role="ProductBaskets" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Basket">
- <PropertyRef Name="Id" />
- </Principal>
- <Dependent Role="ProductBaskets">
- <PropertyRef Name="IdBasket" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ProductBaskets_Product">
- <End Type="TestProductModel.Product" Role="Product" Multiplicity="1" />
- <End Type="TestProductModel.ProductBaskets" Role="ProductBaskets" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Product">
- <PropertyRef Name="Id" />
- </Principal>
- <Dependent Role="ProductBaskets">
- <PropertyRef Name="IdProduct" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- </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="Хранилище TestProductModelContainer" CdmEntityContainer="TestProductEntities">
- <EntitySetMapping Name="Basket">
- <EntityTypeMapping TypeName="TestProductModel.Basket">
- <MappingFragment StoreEntitySet="Basket">
- <ScalarProperty Name="Date" ColumnName="Date" />
- <ScalarProperty Name="IdPickPoint" ColumnName="IdPickPoint" />
- <ScalarProperty Name="CountProduct" ColumnName="CountProduct" />
- <ScalarProperty Name="Price" ColumnName="Price" />
- <ScalarProperty Name="Id" ColumnName="Id" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="PickPoint">
- <EntityTypeMapping TypeName="TestProductModel.PickPoint">
- <MappingFragment StoreEntitySet="PickPoint">
- <ScalarProperty Name="Kind" ColumnName="Kind" />
- <ScalarProperty Name="Id" ColumnName="Id" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Product">
- <EntityTypeMapping TypeName="TestProductModel.Product">
- <MappingFragment StoreEntitySet="Product">
- <ScalarProperty Name="ProductDiscount" ColumnName="ProductDiscount" />
- <ScalarProperty Name="ProductCost" ColumnName="ProductCost" />
- <ScalarProperty Name="ProductPhoto" ColumnName="ProductPhoto" />
- <ScalarProperty Name="ProductDescription" ColumnName="ProductDescription" />
- <ScalarProperty Name="ProductName" ColumnName="ProductName" />
- <ScalarProperty Name="Id" ColumnName="Id" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="ProductBaskets">
- <EntityTypeMapping TypeName="TestProductModel.ProductBaskets">
- <MappingFragment StoreEntitySet="ProductBaskets">
- <ScalarProperty Name="IdBasket" ColumnName="IdBasket" />
- <ScalarProperty Name="IdProduct" ColumnName="IdProduct" />
- <ScalarProperty Name="Id" ColumnName="Id" />
- </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="false" />
- <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
- <DesignerProperty Name="UseLegacyProvider" Value="false" />
- <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
- </DesignerInfoPropertySet>
- </Options>
- <!-- Diagram content (shape and connector positions) -->
- <Diagrams></Diagrams>
- </Designer>
- </edmx:Edmx>
|