|
@@ -4,7 +4,7 @@
|
|
|
<edmx:Runtime>
|
|
|
<!-- SSDL content -->
|
|
|
<edmx:StorageModels>
|
|
|
- <Schema Namespace="Хранилище Model" 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">
|
|
|
+ <Schema Namespace="Хранилище Model" 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" />
|
|
@@ -82,7 +82,7 @@
|
|
|
<Key>
|
|
|
<PropertyRef Name="ID" />
|
|
|
</Key>
|
|
|
- <Property Name="ID" Type="int" Nullable="false" />
|
|
|
+ <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" />
|
|
@@ -257,7 +257,9 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_ProductMaterial_Product">
|
|
|
- <End Role="Product" Type="Self.Product" Multiplicity="1" />
|
|
|
+ <End Role="Product" Type="Self.Product" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
<End Role="ProductMaterial" Type="Self.ProductMaterial" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Product">
|
|
@@ -372,30 +374,92 @@
|
|
|
<End Role="Shop" EntitySet="Shop" />
|
|
|
</AssociationSet>
|
|
|
</EntityContainer>
|
|
|
- </Schema>
|
|
|
- </edmx:StorageModels>
|
|
|
+ </Schema></edmx:StorageModels>
|
|
|
<!-- CSDL content -->
|
|
|
<edmx:ConceptualModels>
|
|
|
<Schema Namespace="Model" 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="Entities" annotation:LazyLoadingEnabled="true">
|
|
|
+ <EntitySet Name="Agent" EntityType="Model.Agent" />
|
|
|
+ <EntitySet Name="AgentPriorityHistory" EntityType="Model.AgentPriorityHistory" />
|
|
|
+ <EntitySet Name="AgentType" EntityType="Model.AgentType" />
|
|
|
+ <EntitySet Name="Material" EntityType="Model.Material" />
|
|
|
+ <EntitySet Name="MaterialCountHistory" EntityType="Model.MaterialCountHistory" />
|
|
|
+ <EntitySet Name="MaterialType" EntityType="Model.MaterialType" />
|
|
|
+ <EntitySet Name="Product" EntityType="Model.Product" />
|
|
|
+ <EntitySet Name="ProductCostHistory" EntityType="Model.ProductCostHistory" />
|
|
|
+ <EntitySet Name="ProductMaterial" EntityType="Model.ProductMaterial" />
|
|
|
+ <EntitySet Name="ProductSale" EntityType="Model.ProductSale" />
|
|
|
+ <EntitySet Name="ProductType" EntityType="Model.ProductType" />
|
|
|
+ <EntitySet Name="Shop" EntityType="Model.Shop" />
|
|
|
+ <EntitySet Name="Supplier" EntityType="Model.Supplier" />
|
|
|
+ <AssociationSet Name="FK_Agent_AgentType" Association="Model.FK_Agent_AgentType">
|
|
|
+ <End Role="AgentType" EntitySet="AgentType" />
|
|
|
+ <End Role="Agent" EntitySet="Agent" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_AgentPriorityHistory_Agent" Association="Model.FK_AgentPriorityHistory_Agent">
|
|
|
+ <End Role="Agent" EntitySet="Agent" />
|
|
|
+ <End Role="AgentPriorityHistory" EntitySet="AgentPriorityHistory" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_ProductSale_Agent" Association="Model.FK_ProductSale_Agent">
|
|
|
+ <End Role="Agent" EntitySet="Agent" />
|
|
|
+ <End Role="ProductSale" EntitySet="ProductSale" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Shop_Agent" Association="Model.FK_Shop_Agent">
|
|
|
+ <End Role="Agent" EntitySet="Agent" />
|
|
|
+ <End Role="Shop" EntitySet="Shop" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Material_MaterialType" Association="Model.FK_Material_MaterialType">
|
|
|
+ <End Role="MaterialType" EntitySet="MaterialType" />
|
|
|
+ <End Role="Material" EntitySet="Material" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_MaterialCountHistory_Material" Association="Model.FK_MaterialCountHistory_Material">
|
|
|
+ <End Role="Material" EntitySet="Material" />
|
|
|
+ <End Role="MaterialCountHistory" EntitySet="MaterialCountHistory" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_ProductMaterial_Material" Association="Model.FK_ProductMaterial_Material">
|
|
|
+ <End Role="Material" EntitySet="Material" />
|
|
|
+ <End Role="ProductMaterial" EntitySet="ProductMaterial" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_Product_ProductType" Association="Model.FK_Product_ProductType">
|
|
|
+ <End Role="ProductType" EntitySet="ProductType" />
|
|
|
+ <End Role="Product" EntitySet="Product" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_ProductCostHistory_Product" Association="Model.FK_ProductCostHistory_Product">
|
|
|
+ <End Role="Product" EntitySet="Product" />
|
|
|
+ <End Role="ProductCostHistory" EntitySet="ProductCostHistory" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_ProductMaterial_Product" Association="Model.FK_ProductMaterial_Product">
|
|
|
+ <End Role="Product" EntitySet="Product" />
|
|
|
+ <End Role="ProductMaterial" EntitySet="ProductMaterial" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="FK_ProductSale_Product" Association="Model.FK_ProductSale_Product">
|
|
|
+ <End Role="Product" EntitySet="Product" />
|
|
|
+ <End Role="ProductSale" EntitySet="ProductSale" />
|
|
|
+ </AssociationSet>
|
|
|
+ <AssociationSet Name="MaterialSupplier" Association="Model.MaterialSupplier">
|
|
|
+ <End Role="Material" EntitySet="Material" />
|
|
|
+ <End Role="Supplier" EntitySet="Supplier" />
|
|
|
+ </AssociationSet>
|
|
|
+ </EntityContainer>
|
|
|
<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="Title" Type="String" Nullable="false" MaxLength="150" FixedLength="false" Unicode="true" />
|
|
|
<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="INN" Type="String" Nullable="false" MaxLength="12" FixedLength="false" Unicode="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="Phone" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="true" />
|
|
|
<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" />
|
|
|
+ <NavigationProperty Name="AgentType" Relationship="Model.FK_Agent_AgentType" FromRole="Agent" ToRole="AgentType" />
|
|
|
+ <NavigationProperty Name="AgentPriorityHistory" Relationship="Model.FK_AgentPriorityHistory_Agent" FromRole="Agent" ToRole="AgentPriorityHistory" />
|
|
|
+ <NavigationProperty Name="ProductSale" Relationship="Model.FK_ProductSale_Agent" FromRole="Agent" ToRole="ProductSale" />
|
|
|
+ <NavigationProperty Name="Shop" Relationship="Model.FK_Shop_Agent" FromRole="Agent" ToRole="Shop" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="AgentPriorityHistory">
|
|
|
<Key>
|
|
@@ -405,35 +469,35 @@
|
|
|
<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" />
|
|
|
+ <NavigationProperty Name="Agent" Relationship="Model.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="Title" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
<Property Name="Image" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
|
|
|
- <NavigationProperty Name="Agent" Relationship="Self.FK_Agent_AgentType" FromRole="AgentType" ToRole="Agent" />
|
|
|
+ <NavigationProperty Name="Agent" Relationship="Model.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="Title" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
|
|
|
<Property Name="CountInPack" Type="Int32" Nullable="false" />
|
|
|
- <Property Name="Unit" Type="String" MaxLength="10" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="Unit" Type="String" Nullable="false" MaxLength="10" FixedLength="false" Unicode="true" />
|
|
|
<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="Cost" Type="Decimal" Nullable="false" Precision="10" Scale="2" />
|
|
|
<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" />
|
|
|
+ <NavigationProperty Name="MaterialType" Relationship="Model.FK_Material_MaterialType" FromRole="Material" ToRole="MaterialType" />
|
|
|
+ <NavigationProperty Name="MaterialCountHistory" Relationship="Model.FK_MaterialCountHistory_Material" FromRole="Material" ToRole="MaterialCountHistory" />
|
|
|
+ <NavigationProperty Name="ProductMaterial" Relationship="Model.FK_ProductMaterial_Material" FromRole="Material" ToRole="ProductMaterial" />
|
|
|
+ <NavigationProperty Name="Supplier" Relationship="Model.MaterialSupplier" FromRole="Material" ToRole="Supplier" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="MaterialCountHistory">
|
|
|
<Key>
|
|
@@ -443,34 +507,34 @@
|
|
|
<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" />
|
|
|
+ <NavigationProperty Name="Material" Relationship="Model.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="Title" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
<Property Name="DefectedPercent" Type="Double" />
|
|
|
- <NavigationProperty Name="Material" Relationship="Self.FK_Material_MaterialType" FromRole="MaterialType" ToRole="Material" />
|
|
|
+ <NavigationProperty Name="Material" Relationship="Model.FK_Material_MaterialType" FromRole="MaterialType" ToRole="Material" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="Product">
|
|
|
<Key>
|
|
|
<PropertyRef Name="ID" />
|
|
|
</Key>
|
|
|
- <Property Name="ID" Type="Int32" Nullable="false" />
|
|
|
- <Property Name="Title" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
+ <Property Name="Title" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
|
|
|
<Property Name="ProductTypeID" Type="Int32" />
|
|
|
- <Property Name="ArticleNumber" Type="String" MaxLength="10" FixedLength="false" Unicode="true" Nullable="false" />
|
|
|
+ <Property Name="ArticleNumber" Type="String" Nullable="false" MaxLength="10" FixedLength="false" Unicode="true" />
|
|
|
<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" Nullable="false" />
|
|
|
- <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" />
|
|
|
+ <Property Name="MinCostForAgent" Type="Decimal" Nullable="false" Precision="10" Scale="2" />
|
|
|
+ <NavigationProperty Name="ProductType" Relationship="Model.FK_Product_ProductType" FromRole="Product" ToRole="ProductType" />
|
|
|
+ <NavigationProperty Name="ProductCostHistory" Relationship="Model.FK_ProductCostHistory_Product" FromRole="Product" ToRole="ProductCostHistory" />
|
|
|
+ <NavigationProperty Name="ProductMaterial" Relationship="Model.FK_ProductMaterial_Product" FromRole="Product" ToRole="ProductMaterial" />
|
|
|
+ <NavigationProperty Name="ProductSale" Relationship="Model.FK_ProductSale_Product" FromRole="Product" ToRole="ProductSale" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="ProductCostHistory">
|
|
|
<Key>
|
|
@@ -479,8 +543,8 @@
|
|
|
<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" />
|
|
|
+ <Property Name="CostValue" Type="Decimal" Nullable="false" Precision="10" Scale="2" />
|
|
|
+ <NavigationProperty Name="Product" Relationship="Model.FK_ProductCostHistory_Product" FromRole="ProductCostHistory" ToRole="Product" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="ProductMaterial">
|
|
|
<Key>
|
|
@@ -490,8 +554,8 @@
|
|
|
<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" />
|
|
|
+ <NavigationProperty Name="Material" Relationship="Model.FK_ProductMaterial_Material" FromRole="ProductMaterial" ToRole="Material" />
|
|
|
+ <NavigationProperty Name="Product" Relationship="Model.FK_ProductMaterial_Product" FromRole="ProductMaterial" ToRole="Product" />
|
|
|
</EntityType>
|
|
|
<EntityType Name="ProductSale">
|
|
|
<Key>
|
|
@@ -502,43 +566,43 @@
|
|
|
<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" />
|
|
|
+ <NavigationProperty Name="Agent" Relationship="Model.FK_ProductSale_Agent" FromRole="ProductSale" ToRole="Agent" />
|
|
|
+ <NavigationProperty Name="Product" Relationship="Model.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="Title" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
|
|
|
<Property Name="DefectedPercent" Type="Double" />
|
|
|
- <NavigationProperty Name="Product" Relationship="Self.FK_Product_ProductType" FromRole="ProductType" ToRole="Product" />
|
|
|
+ <NavigationProperty Name="Product" Relationship="Model.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="Title" Type="String" Nullable="false" MaxLength="150" FixedLength="false" Unicode="true" />
|
|
|
<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" />
|
|
|
+ <NavigationProperty Name="Agent" Relationship="Model.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="Title" Type="String" Nullable="false" MaxLength="150" FixedLength="false" Unicode="true" />
|
|
|
+ <Property Name="INN" Type="String" Nullable="false" MaxLength="12" FixedLength="false" Unicode="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" />
|
|
|
+ <NavigationProperty Name="Material" Relationship="Model.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="*" />
|
|
|
+ <End Type="Model.AgentType" Role="AgentType" Multiplicity="1" />
|
|
|
+ <End Type="Model.Agent" Role="Agent" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="AgentType">
|
|
|
<PropertyRef Name="ID" />
|
|
@@ -549,8 +613,8 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_AgentPriorityHistory_Agent">
|
|
|
- <End Role="Agent" Type="Self.Agent" Multiplicity="1" />
|
|
|
- <End Role="AgentPriorityHistory" Type="Self.AgentPriorityHistory" Multiplicity="*" />
|
|
|
+ <End Type="Model.Agent" Role="Agent" Multiplicity="1" />
|
|
|
+ <End Type="Model.AgentPriorityHistory" Role="AgentPriorityHistory" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Agent">
|
|
|
<PropertyRef Name="ID" />
|
|
@@ -561,8 +625,8 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_ProductSale_Agent">
|
|
|
- <End Role="Agent" Type="Self.Agent" Multiplicity="1" />
|
|
|
- <End Role="ProductSale" Type="Self.ProductSale" Multiplicity="*" />
|
|
|
+ <End Type="Model.Agent" Role="Agent" Multiplicity="1" />
|
|
|
+ <End Type="Model.ProductSale" Role="ProductSale" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Agent">
|
|
|
<PropertyRef Name="ID" />
|
|
@@ -573,8 +637,8 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_Shop_Agent">
|
|
|
- <End Role="Agent" Type="Self.Agent" Multiplicity="1" />
|
|
|
- <End Role="Shop" Type="Self.Shop" Multiplicity="*" />
|
|
|
+ <End Type="Model.Agent" Role="Agent" Multiplicity="1" />
|
|
|
+ <End Type="Model.Shop" Role="Shop" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Agent">
|
|
|
<PropertyRef Name="ID" />
|
|
@@ -585,8 +649,8 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_Material_MaterialType">
|
|
|
- <End Role="MaterialType" Type="Self.MaterialType" Multiplicity="1" />
|
|
|
- <End Role="Material" Type="Self.Material" Multiplicity="*" />
|
|
|
+ <End Type="Model.MaterialType" Role="MaterialType" Multiplicity="1" />
|
|
|
+ <End Type="Model.Material" Role="Material" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="MaterialType">
|
|
|
<PropertyRef Name="ID" />
|
|
@@ -597,8 +661,8 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_MaterialCountHistory_Material">
|
|
|
- <End Role="Material" Type="Self.Material" Multiplicity="1" />
|
|
|
- <End Role="MaterialCountHistory" Type="Self.MaterialCountHistory" Multiplicity="*" />
|
|
|
+ <End Type="Model.Material" Role="Material" Multiplicity="1" />
|
|
|
+ <End Type="Model.MaterialCountHistory" Role="MaterialCountHistory" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Material">
|
|
|
<PropertyRef Name="ID" />
|
|
@@ -609,8 +673,8 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_ProductMaterial_Material">
|
|
|
- <End Role="Material" Type="Self.Material" Multiplicity="1" />
|
|
|
- <End Role="ProductMaterial" Type="Self.ProductMaterial" Multiplicity="*" />
|
|
|
+ <End Type="Model.Material" Role="Material" Multiplicity="1" />
|
|
|
+ <End Type="Model.ProductMaterial" Role="ProductMaterial" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Material">
|
|
|
<PropertyRef Name="ID" />
|
|
@@ -621,8 +685,8 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_Product_ProductType">
|
|
|
- <End Role="ProductType" Type="Self.ProductType" Multiplicity="0..1" />
|
|
|
- <End Role="Product" Type="Self.Product" Multiplicity="*" />
|
|
|
+ <End Type="Model.ProductType" Role="ProductType" Multiplicity="0..1" />
|
|
|
+ <End Type="Model.Product" Role="Product" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="ProductType">
|
|
|
<PropertyRef Name="ID" />
|
|
@@ -633,8 +697,8 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_ProductCostHistory_Product">
|
|
|
- <End Role="Product" Type="Self.Product" Multiplicity="1" />
|
|
|
- <End Role="ProductCostHistory" Type="Self.ProductCostHistory" Multiplicity="*" />
|
|
|
+ <End Type="Model.Product" Role="Product" Multiplicity="1" />
|
|
|
+ <End Type="Model.ProductCostHistory" Role="ProductCostHistory" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Product">
|
|
|
<PropertyRef Name="ID" />
|
|
@@ -645,8 +709,10 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_ProductMaterial_Product">
|
|
|
- <End Role="Product" Type="Self.Product" Multiplicity="1" />
|
|
|
- <End Role="ProductMaterial" Type="Self.ProductMaterial" Multiplicity="*" />
|
|
|
+ <End Type="Model.Product" Role="Product" Multiplicity="1">
|
|
|
+ <OnDelete Action="Cascade" />
|
|
|
+ </End>
|
|
|
+ <End Type="Model.ProductMaterial" Role="ProductMaterial" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Product">
|
|
|
<PropertyRef Name="ID" />
|
|
@@ -657,8 +723,8 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="FK_ProductSale_Product">
|
|
|
- <End Role="Product" Type="Self.Product" Multiplicity="1" />
|
|
|
- <End Role="ProductSale" Type="Self.ProductSale" Multiplicity="*" />
|
|
|
+ <End Type="Model.Product" Role="Product" Multiplicity="1" />
|
|
|
+ <End Type="Model.ProductSale" Role="ProductSale" Multiplicity="*" />
|
|
|
<ReferentialConstraint>
|
|
|
<Principal Role="Product">
|
|
|
<PropertyRef Name="ID" />
|
|
@@ -669,73 +735,10 @@
|
|
|
</ReferentialConstraint>
|
|
|
</Association>
|
|
|
<Association Name="MaterialSupplier">
|
|
|
- <End Role="Material" Type="Self.Material" Multiplicity="*" />
|
|
|
- <End Role="Supplier" Type="Self.Supplier" Multiplicity="*" />
|
|
|
+ <End Type="Model.Material" Role="Material" Multiplicity="*" />
|
|
|
+ <End Type="Model.Supplier" Role="Supplier" Multiplicity="*" />
|
|
|
</Association>
|
|
|
- <EntityContainer Name="Entities" 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>
|
|
|
+ </Schema>
|
|
|
</edmx:ConceptualModels>
|
|
|
<!-- C-S mapping content -->
|
|
|
<edmx:Mappings>
|
|
@@ -744,158 +747,158 @@
|
|
|
<EntitySetMapping Name="Agent">
|
|
|
<EntityTypeMapping TypeName="Model.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" />
|
|
|
+ <ScalarProperty Name="Logo" ColumnName="Logo" />
|
|
|
+ <ScalarProperty Name="Email" ColumnName="Email" />
|
|
|
+ <ScalarProperty Name="Phone" ColumnName="Phone" />
|
|
|
+ <ScalarProperty Name="DirectorName" ColumnName="DirectorName" />
|
|
|
+ <ScalarProperty Name="KPP" ColumnName="KPP" />
|
|
|
+ <ScalarProperty Name="INN" ColumnName="INN" />
|
|
|
+ <ScalarProperty Name="Address" ColumnName="Address" />
|
|
|
+ <ScalarProperty Name="AgentTypeID" ColumnName="AgentTypeID" />
|
|
|
+ <ScalarProperty Name="Title" ColumnName="Title" />
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="AgentPriorityHistory">
|
|
|
<EntityTypeMapping TypeName="Model.AgentPriorityHistory">
|
|
|
<MappingFragment StoreEntitySet="AgentPriorityHistory">
|
|
|
- <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
- <ScalarProperty Name="AgentID" ColumnName="AgentID" />
|
|
|
- <ScalarProperty Name="ChangeDate" ColumnName="ChangeDate" />
|
|
|
<ScalarProperty Name="PriorityValue" ColumnName="PriorityValue" />
|
|
|
+ <ScalarProperty Name="ChangeDate" ColumnName="ChangeDate" />
|
|
|
+ <ScalarProperty Name="AgentID" ColumnName="AgentID" />
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="AgentType">
|
|
|
<EntityTypeMapping TypeName="Model.AgentType">
|
|
|
<MappingFragment StoreEntitySet="AgentType">
|
|
|
- <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
- <ScalarProperty Name="Title" ColumnName="Title" />
|
|
|
<ScalarProperty Name="Image" ColumnName="Image" />
|
|
|
+ <ScalarProperty Name="Title" ColumnName="Title" />
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="Material">
|
|
|
<EntityTypeMapping TypeName="Model.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" />
|
|
|
+ <ScalarProperty Name="Image" ColumnName="Image" />
|
|
|
+ <ScalarProperty Name="Cost" ColumnName="Cost" />
|
|
|
+ <ScalarProperty Name="Description" ColumnName="Description" />
|
|
|
+ <ScalarProperty Name="MinCount" ColumnName="MinCount" />
|
|
|
+ <ScalarProperty Name="CountInStock" ColumnName="CountInStock" />
|
|
|
+ <ScalarProperty Name="Unit" ColumnName="Unit" />
|
|
|
+ <ScalarProperty Name="CountInPack" ColumnName="CountInPack" />
|
|
|
+ <ScalarProperty Name="Title" ColumnName="Title" />
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="MaterialCountHistory">
|
|
|
<EntityTypeMapping TypeName="Model.MaterialCountHistory">
|
|
|
<MappingFragment StoreEntitySet="MaterialCountHistory">
|
|
|
- <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
- <ScalarProperty Name="MaterialID" ColumnName="MaterialID" />
|
|
|
- <ScalarProperty Name="ChangeDate" ColumnName="ChangeDate" />
|
|
|
<ScalarProperty Name="CountValue" ColumnName="CountValue" />
|
|
|
+ <ScalarProperty Name="ChangeDate" ColumnName="ChangeDate" />
|
|
|
+ <ScalarProperty Name="MaterialID" ColumnName="MaterialID" />
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="MaterialType">
|
|
|
<EntityTypeMapping TypeName="Model.MaterialType">
|
|
|
<MappingFragment StoreEntitySet="MaterialType">
|
|
|
- <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
- <ScalarProperty Name="Title" ColumnName="Title" />
|
|
|
<ScalarProperty Name="DefectedPercent" ColumnName="DefectedPercent" />
|
|
|
+ <ScalarProperty Name="Title" ColumnName="Title" />
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="Product">
|
|
|
<EntityTypeMapping TypeName="Model.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" />
|
|
|
+ <ScalarProperty Name="ProductionWorkshopNumber" ColumnName="ProductionWorkshopNumber" />
|
|
|
+ <ScalarProperty Name="ProductionPersonCount" ColumnName="ProductionPersonCount" />
|
|
|
+ <ScalarProperty Name="Image" ColumnName="Image" />
|
|
|
+ <ScalarProperty Name="Description" ColumnName="Description" />
|
|
|
+ <ScalarProperty Name="ArticleNumber" ColumnName="ArticleNumber" />
|
|
|
+ <ScalarProperty Name="ProductTypeID" ColumnName="ProductTypeID" />
|
|
|
+ <ScalarProperty Name="Title" ColumnName="Title" />
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="ProductCostHistory">
|
|
|
<EntityTypeMapping TypeName="Model.ProductCostHistory">
|
|
|
<MappingFragment StoreEntitySet="ProductCostHistory">
|
|
|
- <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
- <ScalarProperty Name="ProductID" ColumnName="ProductID" />
|
|
|
- <ScalarProperty Name="ChangeDate" ColumnName="ChangeDate" />
|
|
|
<ScalarProperty Name="CostValue" ColumnName="CostValue" />
|
|
|
+ <ScalarProperty Name="ChangeDate" ColumnName="ChangeDate" />
|
|
|
+ <ScalarProperty Name="ProductID" ColumnName="ProductID" />
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="ProductMaterial">
|
|
|
<EntityTypeMapping TypeName="Model.ProductMaterial">
|
|
|
<MappingFragment StoreEntitySet="ProductMaterial">
|
|
|
- <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
- <ScalarProperty Name="ProductID" ColumnName="ProductID" />
|
|
|
- <ScalarProperty Name="MaterialID" ColumnName="MaterialID" />
|
|
|
<ScalarProperty Name="Count" ColumnName="Count" />
|
|
|
+ <ScalarProperty Name="MaterialID" ColumnName="MaterialID" />
|
|
|
+ <ScalarProperty Name="ProductID" ColumnName="ProductID" />
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="ProductSale">
|
|
|
<EntityTypeMapping TypeName="Model.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" />
|
|
|
+ <ScalarProperty Name="SaleDate" ColumnName="SaleDate" />
|
|
|
+ <ScalarProperty Name="ProductID" ColumnName="ProductID" />
|
|
|
+ <ScalarProperty Name="AgentID" ColumnName="AgentID" />
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="ProductType">
|
|
|
<EntityTypeMapping TypeName="Model.ProductType">
|
|
|
<MappingFragment StoreEntitySet="ProductType">
|
|
|
- <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
- <ScalarProperty Name="Title" ColumnName="Title" />
|
|
|
<ScalarProperty Name="DefectedPercent" ColumnName="DefectedPercent" />
|
|
|
+ <ScalarProperty Name="Title" ColumnName="Title" />
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="Shop">
|
|
|
<EntityTypeMapping TypeName="Model.Shop">
|
|
|
<MappingFragment StoreEntitySet="Shop">
|
|
|
- <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
- <ScalarProperty Name="Title" ColumnName="Title" />
|
|
|
- <ScalarProperty Name="Address" ColumnName="Address" />
|
|
|
<ScalarProperty Name="AgentID" ColumnName="AgentID" />
|
|
|
+ <ScalarProperty Name="Address" ColumnName="Address" />
|
|
|
+ <ScalarProperty Name="Title" ColumnName="Title" />
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<EntitySetMapping Name="Supplier">
|
|
|
<EntityTypeMapping TypeName="Model.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" />
|
|
|
+ <ScalarProperty Name="QualityRating" ColumnName="QualityRating" />
|
|
|
+ <ScalarProperty Name="StartDate" ColumnName="StartDate" />
|
|
|
+ <ScalarProperty Name="INN" ColumnName="INN" />
|
|
|
+ <ScalarProperty Name="Title" ColumnName="Title" />
|
|
|
+ <ScalarProperty Name="ID" ColumnName="ID" />
|
|
|
</MappingFragment>
|
|
|
</EntityTypeMapping>
|
|
|
</EntitySetMapping>
|
|
|
<AssociationSetMapping Name="MaterialSupplier" TypeName="Model.MaterialSupplier" StoreEntitySet="MaterialSupplier">
|
|
|
- <EndProperty Name="Material">
|
|
|
- <ScalarProperty Name="ID" ColumnName="MaterialID" />
|
|
|
- </EndProperty>
|
|
|
<EndProperty Name="Supplier">
|
|
|
<ScalarProperty Name="ID" ColumnName="SupplierID" />
|
|
|
</EndProperty>
|
|
|
+ <EndProperty Name="Material">
|
|
|
+ <ScalarProperty Name="ID" ColumnName="MaterialID" />
|
|
|
+ </EndProperty>
|
|
|
</AssociationSetMapping>
|
|
|
</EntityContainerMapping>
|
|
|
</Mapping>
|