123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365 |
- <?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="Хранилище user33Model" 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="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="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="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>
- <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_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_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>
- <EntityContainer Name="Хранилище user33ModelContainer">
- <EntitySet Name="Agent" EntityType="Self.Agent" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="AgentType" EntityType="Self.AgentType" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Product" EntityType="Self.Product" 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" />
- <AssociationSet Name="FK_Agent_AgentType" Association="Self.FK_Agent_AgentType">
- <End Role="AgentType" EntitySet="AgentType" />
- <End Role="Agent" EntitySet="Agent" />
- </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_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>
- </EntityContainer>
- </Schema>
- </edmx:StorageModels>
- <!-- CSDL content -->
- <edmx:ConceptualModels>
- <Schema Namespace="user33Model" 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="ProductSale" Relationship="Self.FK_ProductSale_Agent" FromRole="Agent" ToRole="ProductSale" />
- </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="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="ProductSale" Relationship="Self.FK_ProductSale_Product" FromRole="Product" ToRole="ProductSale" />
- </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>
- <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_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_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_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>
- <EntityContainer Name="user33Entities1" annotation:LazyLoadingEnabled="true">
- <EntitySet Name="Agent" EntityType="Self.Agent" />
- <EntitySet Name="AgentType" EntityType="Self.AgentType" />
- <EntitySet Name="Product" EntityType="Self.Product" />
- <EntitySet Name="ProductSale" EntityType="Self.ProductSale" />
- <EntitySet Name="ProductType" EntityType="Self.ProductType" />
- <AssociationSet Name="FK_Agent_AgentType" Association="Self.FK_Agent_AgentType">
- <End Role="AgentType" EntitySet="AgentType" />
- <End Role="Agent" EntitySet="Agent" />
- </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_Product_ProductType" Association="Self.FK_Product_ProductType">
- <End Role="ProductType" EntitySet="ProductType" />
- <End Role="Product" EntitySet="Product" />
- </AssociationSet>
- <AssociationSet Name="FK_ProductSale_Product" Association="Self.FK_ProductSale_Product">
- <End Role="Product" EntitySet="Product" />
- <End Role="ProductSale" EntitySet="ProductSale" />
- </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="Хранилище user33ModelContainer" CdmEntityContainer="user33Entities1">
- <EntitySetMapping Name="Agent">
- <EntityTypeMapping TypeName="user33Model.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="AgentType">
- <EntityTypeMapping TypeName="user33Model.AgentType">
- <MappingFragment StoreEntitySet="AgentType">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="Image" ColumnName="Image" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Product">
- <EntityTypeMapping TypeName="user33Model.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="ProductSale">
- <EntityTypeMapping TypeName="user33Model.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="user33Model.ProductType">
- <MappingFragment StoreEntitySet="ProductType">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="DefectedPercent" ColumnName="DefectedPercent" />
- </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>
|