123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922 |
- <?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="Хранилище user11Model" 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="Agent">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Title" Type="nvarchar" MaxLength="150" Nullable="false" />
- <Property Name="AgentTypeID" Type="int" Nullable="false" />
- <Property Name="Address" Type="nvarchar" MaxLength="300" />
- <Property Name="INN" Type="varchar" MaxLength="12" Nullable="false" />
- <Property Name="KPP" Type="varchar" MaxLength="9" />
- <Property Name="DirectorName" Type="nvarchar" MaxLength="100" />
- <Property Name="Phone" Type="nvarchar" MaxLength="20" Nullable="false" />
- <Property Name="Email" Type="nvarchar" MaxLength="255" />
- <Property Name="Logo" Type="nvarchar" MaxLength="100" />
- <Property Name="Priority" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="AgentPriorityHistory">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="AgentID" Type="int" Nullable="false" />
- <Property Name="ChangeDate" Type="datetime" Nullable="false" />
- <Property Name="PriorityValue" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="AgentType">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Title" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="Image" Type="nvarchar" MaxLength="100" />
- </EntityType>
- <EntityType Name="Material">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Title" Type="nvarchar" MaxLength="100" Nullable="false" />
- <Property Name="CountInPack" Type="int" Nullable="false" />
- <Property Name="Unit" Type="nvarchar" MaxLength="10" Nullable="false" />
- <Property Name="CountInStock" Type="float" />
- <Property Name="MinCount" Type="float" Nullable="false" />
- <Property Name="Description" Type="nvarchar(max)" />
- <Property Name="Cost" Type="decimal" Precision="10" Scale="2" Nullable="false" />
- <Property Name="Image" Type="nvarchar" MaxLength="100" />
- <Property Name="MaterialTypeID" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="MaterialCountHistory">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="MaterialID" Type="int" Nullable="false" />
- <Property Name="ChangeDate" Type="datetime" Nullable="false" />
- <Property Name="CountValue" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="MaterialSupplier">
- <Key>
- <PropertyRef Name="MaterialID" />
- <PropertyRef Name="SupplierID" />
- </Key>
- <Property Name="MaterialID" Type="int" Nullable="false" />
- <Property Name="SupplierID" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="MaterialType">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Title" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="DefectedPercent" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="Product">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Title" Type="nvarchar" MaxLength="100" Nullable="false" />
- <Property Name="ProductTypeID" Type="int" />
- <Property Name="ArticleNumber" Type="nvarchar" MaxLength="10" Nullable="false" />
- <Property Name="Description" Type="nvarchar(max)" />
- <Property Name="Image" Type="nvarchar" MaxLength="100" />
- <Property Name="ProductionPersonCount" Type="int" />
- <Property Name="ProductionWorkshopNumber" Type="int" />
- <Property Name="MinCostForAgent" Type="decimal" Precision="10" Scale="2" Nullable="false" />
- </EntityType>
- <EntityType Name="ProductCostHistory">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="ProductID" Type="int" Nullable="false" />
- <Property Name="ChangeDate" Type="datetime" Nullable="false" />
- <Property Name="CostValue" Type="decimal" Precision="10" Scale="2" Nullable="false" />
- </EntityType>
- <EntityType Name="ProductMaterial">
- <Key>
- <PropertyRef Name="ProductID" />
- <PropertyRef Name="MaterialID" />
- </Key>
- <Property Name="ProductID" Type="int" Nullable="false" />
- <Property Name="MaterialID" Type="int" Nullable="false" />
- <Property Name="Count" Type="float" />
- </EntityType>
- <EntityType Name="ProductSale">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="AgentID" Type="int" Nullable="false" />
- <Property Name="ProductID" Type="int" Nullable="false" />
- <Property Name="SaleDate" Type="date" Nullable="false" />
- <Property Name="ProductCount" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="ProductType">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Title" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="DefectedPercent" Type="float" Nullable="false" />
- </EntityType>
- <EntityType Name="Shop">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Title" Type="nvarchar" MaxLength="150" Nullable="false" />
- <Property Name="Address" Type="nvarchar" MaxLength="300" />
- <Property Name="AgentID" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="Supplier">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Title" Type="nvarchar" MaxLength="150" Nullable="false" />
- <Property Name="INN" Type="varchar" MaxLength="12" Nullable="false" />
- <Property Name="StartDate" Type="date" Nullable="false" />
- <Property Name="QualityRating" Type="int" />
- <Property Name="SupplierType" Type="nvarchar" MaxLength="20" />
- </EntityType>
- <Association Name="FK_Agent_AgentType">
- <End Role="AgentType" Type="Self.AgentType" Multiplicity="1" />
- <End Role="Agent" Type="Self.Agent" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="AgentType">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="Agent">
- <PropertyRef Name="AgentTypeID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_AgentPriorityHistory_Agent">
- <End Role="Agent" Type="Self.Agent" Multiplicity="1" />
- <End Role="AgentPriorityHistory" Type="Self.AgentPriorityHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Agent">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="AgentPriorityHistory">
- <PropertyRef Name="AgentID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Material_MaterialType">
- <End Role="MaterialType" Type="Self.MaterialType" Multiplicity="1" />
- <End Role="Material" Type="Self.Material" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="MaterialType">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="Material">
- <PropertyRef Name="MaterialTypeID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_MaterialCountHistory_Material">
- <End Role="Material" Type="Self.Material" Multiplicity="1" />
- <End Role="MaterialCountHistory" Type="Self.MaterialCountHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Material">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="MaterialCountHistory">
- <PropertyRef Name="MaterialID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_MaterialSupplier_Material">
- <End Role="Material" Type="Self.Material" Multiplicity="1" />
- <End Role="MaterialSupplier" Type="Self.MaterialSupplier" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Material">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="MaterialSupplier">
- <PropertyRef Name="MaterialID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_MaterialSupplier_Supplier">
- <End Role="Supplier" Type="Self.Supplier" Multiplicity="1" />
- <End Role="MaterialSupplier" Type="Self.MaterialSupplier" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Supplier">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="MaterialSupplier">
- <PropertyRef Name="SupplierID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Product_ProductType">
- <End Role="ProductType" Type="Self.ProductType" Multiplicity="0..1" />
- <End Role="Product" Type="Self.Product" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="ProductType">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="Product">
- <PropertyRef Name="ProductTypeID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ProductCostHistory_Product">
- <End Role="Product" Type="Self.Product" Multiplicity="1" />
- <End Role="ProductCostHistory" Type="Self.ProductCostHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Product">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="ProductCostHistory">
- <PropertyRef Name="ProductID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ProductMaterial_Material">
- <End Role="Material" Type="Self.Material" Multiplicity="1" />
- <End Role="ProductMaterial" Type="Self.ProductMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Material">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="ProductMaterial">
- <PropertyRef Name="MaterialID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ProductMaterial_Product">
- <End Role="Product" Type="Self.Product" Multiplicity="1" />
- <End Role="ProductMaterial" Type="Self.ProductMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Product">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="ProductMaterial">
- <PropertyRef Name="ProductID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ProductSale_Agent">
- <End Role="Agent" Type="Self.Agent" Multiplicity="1" />
- <End Role="ProductSale" Type="Self.ProductSale" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Agent">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="ProductSale">
- <PropertyRef Name="AgentID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ProductSale_Product">
- <End Role="Product" Type="Self.Product" Multiplicity="1" />
- <End Role="ProductSale" Type="Self.ProductSale" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Product">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="ProductSale">
- <PropertyRef Name="ProductID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Shop_Agent">
- <End Role="Agent" Type="Self.Agent" Multiplicity="1" />
- <End Role="Shop" Type="Self.Shop" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Agent">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="Shop">
- <PropertyRef Name="AgentID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="Хранилище user11ModelContainer">
- <EntitySet Name="Agent" EntityType="Self.Agent" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="AgentPriorityHistory" EntityType="Self.AgentPriorityHistory" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="AgentType" EntityType="Self.AgentType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Material" EntityType="Self.Material" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="MaterialCountHistory" EntityType="Self.MaterialCountHistory" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="MaterialSupplier" EntityType="Self.MaterialSupplier" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="MaterialType" EntityType="Self.MaterialType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Product" EntityType="Self.Product" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="ProductCostHistory" EntityType="Self.ProductCostHistory" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="ProductMaterial" EntityType="Self.ProductMaterial" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="ProductSale" EntityType="Self.ProductSale" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="ProductType" EntityType="Self.ProductType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Shop" EntityType="Self.Shop" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Supplier" EntityType="Self.Supplier" Schema="dbo" store:Type="Tables" />
- <AssociationSet Name="FK_Agent_AgentType" Association="Self.FK_Agent_AgentType">
- <End Role="AgentType" EntitySet="AgentType" />
- <End Role="Agent" EntitySet="Agent" />
- </AssociationSet>
- <AssociationSet Name="FK_AgentPriorityHistory_Agent" Association="Self.FK_AgentPriorityHistory_Agent">
- <End Role="Agent" EntitySet="Agent" />
- <End Role="AgentPriorityHistory" EntitySet="AgentPriorityHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_Material_MaterialType" Association="Self.FK_Material_MaterialType">
- <End Role="MaterialType" EntitySet="MaterialType" />
- <End Role="Material" EntitySet="Material" />
- </AssociationSet>
- <AssociationSet Name="FK_MaterialCountHistory_Material" Association="Self.FK_MaterialCountHistory_Material">
- <End Role="Material" EntitySet="Material" />
- <End Role="MaterialCountHistory" EntitySet="MaterialCountHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_MaterialSupplier_Material" Association="Self.FK_MaterialSupplier_Material">
- <End Role="Material" EntitySet="Material" />
- <End Role="MaterialSupplier" EntitySet="MaterialSupplier" />
- </AssociationSet>
- <AssociationSet Name="FK_MaterialSupplier_Supplier" Association="Self.FK_MaterialSupplier_Supplier">
- <End Role="Supplier" EntitySet="Supplier" />
- <End Role="MaterialSupplier" EntitySet="MaterialSupplier" />
- </AssociationSet>
- <AssociationSet Name="FK_Product_ProductType" Association="Self.FK_Product_ProductType">
- <End Role="ProductType" EntitySet="ProductType" />
- <End Role="Product" EntitySet="Product" />
- </AssociationSet>
- <AssociationSet Name="FK_ProductCostHistory_Product" Association="Self.FK_ProductCostHistory_Product">
- <End Role="Product" EntitySet="Product" />
- <End Role="ProductCostHistory" EntitySet="ProductCostHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_ProductMaterial_Material" Association="Self.FK_ProductMaterial_Material">
- <End Role="Material" EntitySet="Material" />
- <End Role="ProductMaterial" EntitySet="ProductMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_ProductMaterial_Product" Association="Self.FK_ProductMaterial_Product">
- <End Role="Product" EntitySet="Product" />
- <End Role="ProductMaterial" EntitySet="ProductMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_ProductSale_Agent" Association="Self.FK_ProductSale_Agent">
- <End Role="Agent" EntitySet="Agent" />
- <End Role="ProductSale" EntitySet="ProductSale" />
- </AssociationSet>
- <AssociationSet Name="FK_ProductSale_Product" Association="Self.FK_ProductSale_Product">
- <End Role="Product" EntitySet="Product" />
- <End Role="ProductSale" EntitySet="ProductSale" />
- </AssociationSet>
- <AssociationSet Name="FK_Shop_Agent" Association="Self.FK_Shop_Agent">
- <End Role="Agent" EntitySet="Agent" />
- <End Role="Shop" EntitySet="Shop" />
- </AssociationSet>
- </EntityContainer>
- </Schema>
- </edmx:StorageModels>
- <!-- CSDL content -->
- <edmx:ConceptualModels>
- <Schema Namespace="user11Model" 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="Agent">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Title" Type="String" MaxLength="150" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="AgentTypeID" Type="Int32" Nullable="false" />
- <Property Name="Address" Type="String" MaxLength="300" FixedLength="false" Unicode="true" />
- <Property Name="INN" Type="String" MaxLength="12" FixedLength="false" Unicode="false" Nullable="false" />
- <Property Name="KPP" Type="String" MaxLength="9" FixedLength="false" Unicode="false" />
- <Property Name="DirectorName" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="Phone" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Email" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
- <Property Name="Logo" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="Priority" Type="Int32" Nullable="false" />
- <NavigationProperty Name="AgentType" Relationship="Self.FK_Agent_AgentType" FromRole="Agent" ToRole="AgentType" />
- <NavigationProperty Name="AgentPriorityHistory" Relationship="Self.FK_AgentPriorityHistory_Agent" FromRole="Agent" ToRole="AgentPriorityHistory" />
- <NavigationProperty Name="ProductSale" Relationship="Self.FK_ProductSale_Agent" FromRole="Agent" ToRole="ProductSale" />
- <NavigationProperty Name="Shop" Relationship="Self.FK_Shop_Agent" FromRole="Agent" ToRole="Shop" />
- </EntityType>
- <EntityType Name="AgentPriorityHistory">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="AgentID" Type="Int32" Nullable="false" />
- <Property Name="ChangeDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="PriorityValue" Type="Int32" Nullable="false" />
- <NavigationProperty Name="Agent" Relationship="Self.FK_AgentPriorityHistory_Agent" FromRole="AgentPriorityHistory" ToRole="Agent" />
- </EntityType>
- <EntityType Name="AgentType">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Image" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="Agent" Relationship="Self.FK_Agent_AgentType" FromRole="AgentType" ToRole="Agent" />
- </EntityType>
- <EntityType Name="Material">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Title" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="CountInPack" Type="Int32" Nullable="false" />
- <Property Name="Unit" Type="String" MaxLength="10" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="CountInStock" Type="Double" />
- <Property Name="MinCount" Type="Double" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
- <Property Name="Cost" Type="Decimal" Precision="10" Scale="2" Nullable="false" />
- <Property Name="Image" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="MaterialTypeID" Type="Int32" Nullable="false" />
- <NavigationProperty Name="MaterialType" Relationship="Self.FK_Material_MaterialType" FromRole="Material" ToRole="MaterialType" />
- <NavigationProperty Name="MaterialCountHistory" Relationship="Self.FK_MaterialCountHistory_Material" FromRole="Material" ToRole="MaterialCountHistory" />
- <NavigationProperty Name="ProductMaterial" Relationship="Self.FK_ProductMaterial_Material" FromRole="Material" ToRole="ProductMaterial" />
- <NavigationProperty Name="Supplier" Relationship="Self.MaterialSupplier" FromRole="Material" ToRole="Supplier" />
- </EntityType>
- <EntityType Name="MaterialCountHistory">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="MaterialID" Type="Int32" Nullable="false" />
- <Property Name="ChangeDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="CountValue" Type="Double" Nullable="false" />
- <NavigationProperty Name="Material" Relationship="Self.FK_MaterialCountHistory_Material" FromRole="MaterialCountHistory" ToRole="Material" />
- </EntityType>
- <EntityType Name="MaterialType">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="DefectedPercent" Type="Double" Nullable="false" />
- <NavigationProperty Name="Material" Relationship="Self.FK_Material_MaterialType" FromRole="MaterialType" ToRole="Material" />
- </EntityType>
- <EntityType Name="Product">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Title" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="ProductTypeID" Type="Int32" />
- <Property Name="ArticleNumber" Type="String" MaxLength="10" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
- <Property Name="Image" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
- <Property Name="ProductionPersonCount" Type="Int32" />
- <Property Name="ProductionWorkshopNumber" Type="Int32" />
- <Property Name="MinCostForAgent" Type="Decimal" Precision="10" Scale="2" Nullable="false" />
- <NavigationProperty Name="ProductType" Relationship="Self.FK_Product_ProductType" FromRole="Product" ToRole="ProductType" />
- <NavigationProperty Name="ProductCostHistory" Relationship="Self.FK_ProductCostHistory_Product" FromRole="Product" ToRole="ProductCostHistory" />
- <NavigationProperty Name="ProductMaterial" Relationship="Self.FK_ProductMaterial_Product" FromRole="Product" ToRole="ProductMaterial" />
- <NavigationProperty Name="ProductSale" Relationship="Self.FK_ProductSale_Product" FromRole="Product" ToRole="ProductSale" />
- </EntityType>
- <EntityType Name="ProductCostHistory">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="ProductID" Type="Int32" Nullable="false" />
- <Property Name="ChangeDate" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="CostValue" Type="Decimal" Precision="10" Scale="2" Nullable="false" />
- <NavigationProperty Name="Product" Relationship="Self.FK_ProductCostHistory_Product" FromRole="ProductCostHistory" ToRole="Product" />
- </EntityType>
- <EntityType Name="ProductMaterial">
- <Key>
- <PropertyRef Name="ProductID" />
- <PropertyRef Name="MaterialID" />
- </Key>
- <Property Name="ProductID" Type="Int32" Nullable="false" />
- <Property Name="MaterialID" Type="Int32" Nullable="false" />
- <Property Name="Count" Type="Double" />
- <NavigationProperty Name="Material" Relationship="Self.FK_ProductMaterial_Material" FromRole="ProductMaterial" ToRole="Material" />
- <NavigationProperty Name="Product" Relationship="Self.FK_ProductMaterial_Product" FromRole="ProductMaterial" ToRole="Product" />
- </EntityType>
- <EntityType Name="ProductSale">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="AgentID" Type="Int32" Nullable="false" />
- <Property Name="ProductID" Type="Int32" Nullable="false" />
- <Property Name="SaleDate" Type="DateTime" Nullable="false" Precision="0" />
- <Property Name="ProductCount" Type="Int32" Nullable="false" />
- <NavigationProperty Name="Agent" Relationship="Self.FK_ProductSale_Agent" FromRole="ProductSale" ToRole="Agent" />
- <NavigationProperty Name="Product" Relationship="Self.FK_ProductSale_Product" FromRole="ProductSale" ToRole="Product" />
- </EntityType>
- <EntityType Name="ProductType">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="DefectedPercent" Type="Double" Nullable="false" />
- <NavigationProperty Name="Product" Relationship="Self.FK_Product_ProductType" FromRole="ProductType" ToRole="Product" />
- </EntityType>
- <EntityType Name="Shop">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Title" Type="String" MaxLength="150" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Address" Type="String" MaxLength="300" FixedLength="false" Unicode="true" />
- <Property Name="AgentID" Type="Int32" Nullable="false" />
- <NavigationProperty Name="Agent" Relationship="Self.FK_Shop_Agent" FromRole="Shop" ToRole="Agent" />
- </EntityType>
- <EntityType Name="Supplier">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Title" Type="String" MaxLength="150" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="INN" Type="String" MaxLength="12" FixedLength="false" Unicode="false" Nullable="false" />
- <Property Name="StartDate" Type="DateTime" Nullable="false" Precision="0" />
- <Property Name="QualityRating" Type="Int32" />
- <Property Name="SupplierType" Type="String" MaxLength="20" FixedLength="false" Unicode="true" />
- <NavigationProperty Name="Material" Relationship="Self.MaterialSupplier" FromRole="Supplier" ToRole="Material" />
- </EntityType>
- <Association Name="FK_Agent_AgentType">
- <End Role="AgentType" Type="Self.AgentType" Multiplicity="1" />
- <End Role="Agent" Type="Self.Agent" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="AgentType">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="Agent">
- <PropertyRef Name="AgentTypeID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_AgentPriorityHistory_Agent">
- <End Role="Agent" Type="Self.Agent" Multiplicity="1" />
- <End Role="AgentPriorityHistory" Type="Self.AgentPriorityHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Agent">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="AgentPriorityHistory">
- <PropertyRef Name="AgentID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ProductSale_Agent">
- <End Role="Agent" Type="Self.Agent" Multiplicity="1" />
- <End Role="ProductSale" Type="Self.ProductSale" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Agent">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="ProductSale">
- <PropertyRef Name="AgentID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Shop_Agent">
- <End Role="Agent" Type="Self.Agent" Multiplicity="1" />
- <End Role="Shop" Type="Self.Shop" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Agent">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="Shop">
- <PropertyRef Name="AgentID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Material_MaterialType">
- <End Role="MaterialType" Type="Self.MaterialType" Multiplicity="1" />
- <End Role="Material" Type="Self.Material" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="MaterialType">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="Material">
- <PropertyRef Name="MaterialTypeID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_MaterialCountHistory_Material">
- <End Role="Material" Type="Self.Material" Multiplicity="1" />
- <End Role="MaterialCountHistory" Type="Self.MaterialCountHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Material">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="MaterialCountHistory">
- <PropertyRef Name="MaterialID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ProductMaterial_Material">
- <End Role="Material" Type="Self.Material" Multiplicity="1" />
- <End Role="ProductMaterial" Type="Self.ProductMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Material">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="ProductMaterial">
- <PropertyRef Name="MaterialID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Product_ProductType">
- <End Role="ProductType" Type="Self.ProductType" Multiplicity="0..1" />
- <End Role="Product" Type="Self.Product" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="ProductType">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="Product">
- <PropertyRef Name="ProductTypeID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ProductCostHistory_Product">
- <End Role="Product" Type="Self.Product" Multiplicity="1" />
- <End Role="ProductCostHistory" Type="Self.ProductCostHistory" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Product">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="ProductCostHistory">
- <PropertyRef Name="ProductID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ProductMaterial_Product">
- <End Role="Product" Type="Self.Product" Multiplicity="1" />
- <End Role="ProductMaterial" Type="Self.ProductMaterial" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Product">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="ProductMaterial">
- <PropertyRef Name="ProductID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_ProductSale_Product">
- <End Role="Product" Type="Self.Product" Multiplicity="1" />
- <End Role="ProductSale" Type="Self.ProductSale" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Product">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="ProductSale">
- <PropertyRef Name="ProductID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="MaterialSupplier">
- <End Role="Material" Type="Self.Material" Multiplicity="*" />
- <End Role="Supplier" Type="Self.Supplier" Multiplicity="*" />
- </Association>
- <EntityContainer Name="user11Entities" annotation:LazyLoadingEnabled="true">
- <EntitySet Name="Agent" EntityType="Self.Agent" />
- <EntitySet Name="AgentPriorityHistory" EntityType="Self.AgentPriorityHistory" />
- <EntitySet Name="AgentType" EntityType="Self.AgentType" />
- <EntitySet Name="Material" EntityType="Self.Material" />
- <EntitySet Name="MaterialCountHistory" EntityType="Self.MaterialCountHistory" />
- <EntitySet Name="MaterialType" EntityType="Self.MaterialType" />
- <EntitySet Name="Product" EntityType="Self.Product" />
- <EntitySet Name="ProductCostHistory" EntityType="Self.ProductCostHistory" />
- <EntitySet Name="ProductMaterial" EntityType="Self.ProductMaterial" />
- <EntitySet Name="ProductSale" EntityType="Self.ProductSale" />
- <EntitySet Name="ProductType" EntityType="Self.ProductType" />
- <EntitySet Name="Shop" EntityType="Self.Shop" />
- <EntitySet Name="Supplier" EntityType="Self.Supplier" />
- <AssociationSet Name="FK_Agent_AgentType" Association="Self.FK_Agent_AgentType">
- <End Role="AgentType" EntitySet="AgentType" />
- <End Role="Agent" EntitySet="Agent" />
- </AssociationSet>
- <AssociationSet Name="FK_AgentPriorityHistory_Agent" Association="Self.FK_AgentPriorityHistory_Agent">
- <End Role="Agent" EntitySet="Agent" />
- <End Role="AgentPriorityHistory" EntitySet="AgentPriorityHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_ProductSale_Agent" Association="Self.FK_ProductSale_Agent">
- <End Role="Agent" EntitySet="Agent" />
- <End Role="ProductSale" EntitySet="ProductSale" />
- </AssociationSet>
- <AssociationSet Name="FK_Shop_Agent" Association="Self.FK_Shop_Agent">
- <End Role="Agent" EntitySet="Agent" />
- <End Role="Shop" EntitySet="Shop" />
- </AssociationSet>
- <AssociationSet Name="FK_Material_MaterialType" Association="Self.FK_Material_MaterialType">
- <End Role="MaterialType" EntitySet="MaterialType" />
- <End Role="Material" EntitySet="Material" />
- </AssociationSet>
- <AssociationSet Name="FK_MaterialCountHistory_Material" Association="Self.FK_MaterialCountHistory_Material">
- <End Role="Material" EntitySet="Material" />
- <End Role="MaterialCountHistory" EntitySet="MaterialCountHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_ProductMaterial_Material" Association="Self.FK_ProductMaterial_Material">
- <End Role="Material" EntitySet="Material" />
- <End Role="ProductMaterial" EntitySet="ProductMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_Product_ProductType" Association="Self.FK_Product_ProductType">
- <End Role="ProductType" EntitySet="ProductType" />
- <End Role="Product" EntitySet="Product" />
- </AssociationSet>
- <AssociationSet Name="FK_ProductCostHistory_Product" Association="Self.FK_ProductCostHistory_Product">
- <End Role="Product" EntitySet="Product" />
- <End Role="ProductCostHistory" EntitySet="ProductCostHistory" />
- </AssociationSet>
- <AssociationSet Name="FK_ProductMaterial_Product" Association="Self.FK_ProductMaterial_Product">
- <End Role="Product" EntitySet="Product" />
- <End Role="ProductMaterial" EntitySet="ProductMaterial" />
- </AssociationSet>
- <AssociationSet Name="FK_ProductSale_Product" Association="Self.FK_ProductSale_Product">
- <End Role="Product" EntitySet="Product" />
- <End Role="ProductSale" EntitySet="ProductSale" />
- </AssociationSet>
- <AssociationSet Name="MaterialSupplier" Association="Self.MaterialSupplier">
- <End Role="Material" EntitySet="Material" />
- <End Role="Supplier" EntitySet="Supplier" />
- </AssociationSet>
- </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="Хранилище user11ModelContainer" CdmEntityContainer="user11Entities">
- <EntitySetMapping Name="Agent">
- <EntityTypeMapping TypeName="user11Model.Agent">
- <MappingFragment StoreEntitySet="Agent">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="AgentTypeID" ColumnName="AgentTypeID" />
- <ScalarProperty Name="Address" ColumnName="Address" />
- <ScalarProperty Name="INN" ColumnName="INN" />
- <ScalarProperty Name="KPP" ColumnName="KPP" />
- <ScalarProperty Name="DirectorName" ColumnName="DirectorName" />
- <ScalarProperty Name="Phone" ColumnName="Phone" />
- <ScalarProperty Name="Email" ColumnName="Email" />
- <ScalarProperty Name="Logo" ColumnName="Logo" />
- <ScalarProperty Name="Priority" ColumnName="Priority" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="AgentPriorityHistory">
- <EntityTypeMapping TypeName="user11Model.AgentPriorityHistory">
- <MappingFragment StoreEntitySet="AgentPriorityHistory">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="AgentID" ColumnName="AgentID" />
- <ScalarProperty Name="ChangeDate" ColumnName="ChangeDate" />
- <ScalarProperty Name="PriorityValue" ColumnName="PriorityValue" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="AgentType">
- <EntityTypeMapping TypeName="user11Model.AgentType">
- <MappingFragment StoreEntitySet="AgentType">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="Image" ColumnName="Image" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Material">
- <EntityTypeMapping TypeName="user11Model.Material">
- <MappingFragment StoreEntitySet="Material">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="CountInPack" ColumnName="CountInPack" />
- <ScalarProperty Name="Unit" ColumnName="Unit" />
- <ScalarProperty Name="CountInStock" ColumnName="CountInStock" />
- <ScalarProperty Name="MinCount" ColumnName="MinCount" />
- <ScalarProperty Name="Description" ColumnName="Description" />
- <ScalarProperty Name="Cost" ColumnName="Cost" />
- <ScalarProperty Name="Image" ColumnName="Image" />
- <ScalarProperty Name="MaterialTypeID" ColumnName="MaterialTypeID" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="MaterialCountHistory">
- <EntityTypeMapping TypeName="user11Model.MaterialCountHistory">
- <MappingFragment StoreEntitySet="MaterialCountHistory">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="MaterialID" ColumnName="MaterialID" />
- <ScalarProperty Name="ChangeDate" ColumnName="ChangeDate" />
- <ScalarProperty Name="CountValue" ColumnName="CountValue" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="MaterialType">
- <EntityTypeMapping TypeName="user11Model.MaterialType">
- <MappingFragment StoreEntitySet="MaterialType">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="DefectedPercent" ColumnName="DefectedPercent" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Product">
- <EntityTypeMapping TypeName="user11Model.Product">
- <MappingFragment StoreEntitySet="Product">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="ProductTypeID" ColumnName="ProductTypeID" />
- <ScalarProperty Name="ArticleNumber" ColumnName="ArticleNumber" />
- <ScalarProperty Name="Description" ColumnName="Description" />
- <ScalarProperty Name="Image" ColumnName="Image" />
- <ScalarProperty Name="ProductionPersonCount" ColumnName="ProductionPersonCount" />
- <ScalarProperty Name="ProductionWorkshopNumber" ColumnName="ProductionWorkshopNumber" />
- <ScalarProperty Name="MinCostForAgent" ColumnName="MinCostForAgent" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="ProductCostHistory">
- <EntityTypeMapping TypeName="user11Model.ProductCostHistory">
- <MappingFragment StoreEntitySet="ProductCostHistory">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="ProductID" ColumnName="ProductID" />
- <ScalarProperty Name="ChangeDate" ColumnName="ChangeDate" />
- <ScalarProperty Name="CostValue" ColumnName="CostValue" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="ProductMaterial">
- <EntityTypeMapping TypeName="user11Model.ProductMaterial">
- <MappingFragment StoreEntitySet="ProductMaterial">
- <ScalarProperty Name="ProductID" ColumnName="ProductID" />
- <ScalarProperty Name="MaterialID" ColumnName="MaterialID" />
- <ScalarProperty Name="Count" ColumnName="Count" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="ProductSale">
- <EntityTypeMapping TypeName="user11Model.ProductSale">
- <MappingFragment StoreEntitySet="ProductSale">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="AgentID" ColumnName="AgentID" />
- <ScalarProperty Name="ProductID" ColumnName="ProductID" />
- <ScalarProperty Name="SaleDate" ColumnName="SaleDate" />
- <ScalarProperty Name="ProductCount" ColumnName="ProductCount" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="ProductType">
- <EntityTypeMapping TypeName="user11Model.ProductType">
- <MappingFragment StoreEntitySet="ProductType">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="DefectedPercent" ColumnName="DefectedPercent" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Shop">
- <EntityTypeMapping TypeName="user11Model.Shop">
- <MappingFragment StoreEntitySet="Shop">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="Address" ColumnName="Address" />
- <ScalarProperty Name="AgentID" ColumnName="AgentID" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Supplier">
- <EntityTypeMapping TypeName="user11Model.Supplier">
- <MappingFragment StoreEntitySet="Supplier">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="INN" ColumnName="INN" />
- <ScalarProperty Name="StartDate" ColumnName="StartDate" />
- <ScalarProperty Name="QualityRating" ColumnName="QualityRating" />
- <ScalarProperty Name="SupplierType" ColumnName="SupplierType" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <AssociationSetMapping Name="MaterialSupplier" TypeName="user11Model.MaterialSupplier" StoreEntitySet="MaterialSupplier">
- <EndProperty Name="Material">
- <ScalarProperty Name="ID" ColumnName="MaterialID" />
- </EndProperty>
- <EndProperty Name="Supplier">
- <ScalarProperty Name="ID" ColumnName="SupplierID" />
- </EndProperty>
- </AssociationSetMapping>
- </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>
|