123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349 |
- <?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="Хранилище option2Model" 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="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="nchar" MaxLength="100" />
- <Property Name="MaterialTypeId" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="MaterialSupplier">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <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" />
- </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="nvarchar" MaxLength="12" Nullable="false" />
- <Property Name="StartDate" Type="date" Nullable="false" />
- <Property Name="QualityRating" Type="int" />
- <Property Name="SupplierType" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="SupplierType">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Title" Type="nchar" MaxLength="50" Nullable="false" />
- </EntityType>
- <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_MaterialSupplier_Material">
- <End Role="Material" Type="Self.Material" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <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">
- <OnDelete Action="Cascade" />
- </End>
- <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_Supplier_SupplierType">
- <End Role="SupplierType" Type="Self.SupplierType" Multiplicity="1" />
- <End Role="Supplier" Type="Self.Supplier" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="SupplierType">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="Supplier">
- <PropertyRef Name="SupplierType" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="Хранилище option2ModelContainer">
- <EntitySet Name="Material" EntityType="Self.Material" 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="Supplier" EntityType="Self.Supplier" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="SupplierType" EntityType="Self.SupplierType" Schema="dbo" store:Type="Tables" />
- <AssociationSet Name="FK_Material_MaterialType" Association="Self.FK_Material_MaterialType">
- <End Role="MaterialType" EntitySet="MaterialType" />
- <End Role="Material" EntitySet="Material" />
- </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_Supplier_SupplierType" Association="Self.FK_Supplier_SupplierType">
- <End Role="SupplierType" EntitySet="SupplierType" />
- <End Role="Supplier" EntitySet="Supplier" />
- </AssociationSet>
- </EntityContainer>
- </Schema>
- </edmx:StorageModels>
- <!-- CSDL content -->
- <edmx:ConceptualModels>
- <Schema Namespace="option2Model" 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="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="true" Unicode="true" />
- <Property Name="MaterialTypeId" Type="Int32" Nullable="false" />
- <NavigationProperty Name="MaterialType" Relationship="Self.FK_Material_MaterialType" FromRole="Material" ToRole="MaterialType" />
- <NavigationProperty Name="MaterialSupplier" Relationship="Self.FK_MaterialSupplier_Material" FromRole="Material" ToRole="MaterialSupplier" />
- </EntityType>
- <EntityType Name="MaterialSupplier">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="MaterialID" Type="Int32" Nullable="false" />
- <Property Name="SupplierID" Type="Int32" Nullable="false" />
- <NavigationProperty Name="Material" Relationship="Self.FK_MaterialSupplier_Material" FromRole="MaterialSupplier" ToRole="Material" />
- <NavigationProperty Name="Supplier" Relationship="Self.FK_MaterialSupplier_Supplier" FromRole="MaterialSupplier" ToRole="Supplier" />
- </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" />
- <NavigationProperty Name="Material" Relationship="Self.FK_Material_MaterialType" FromRole="MaterialType" ToRole="Material" />
- </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="true" Nullable="false" />
- <Property Name="StartDate" Type="DateTime" Nullable="false" Precision="0" />
- <Property Name="QualityRating" Type="Int32" />
- <Property Name="SupplierType" Type="Int32" Nullable="false" />
- <NavigationProperty Name="MaterialSupplier" Relationship="Self.FK_MaterialSupplier_Supplier" FromRole="Supplier" ToRole="MaterialSupplier" />
- <NavigationProperty Name="SupplierType1" Relationship="Self.FK_Supplier_SupplierType" FromRole="Supplier" ToRole="SupplierType" />
- </EntityType>
- <EntityType Name="SupplierType">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Title" Type="String" MaxLength="50" FixedLength="true" Unicode="true" Nullable="false" />
- <NavigationProperty Name="Supplier" Relationship="Self.FK_Supplier_SupplierType" FromRole="SupplierType" ToRole="Supplier" />
- </EntityType>
- <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_MaterialSupplier_Material">
- <End Role="Material" Type="Self.Material" Multiplicity="1">
- <OnDelete Action="Cascade" />
- </End>
- <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">
- <OnDelete Action="Cascade" />
- </End>
- <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_Supplier_SupplierType">
- <End Role="SupplierType" Type="Self.SupplierType" Multiplicity="1" />
- <End Role="Supplier" Type="Self.Supplier" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="SupplierType">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="Supplier">
- <PropertyRef Name="SupplierType" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="BaseDate" annotation:LazyLoadingEnabled="true">
- <EntitySet Name="Material" EntityType="Self.Material" />
- <EntitySet Name="MaterialSupplier" EntityType="Self.MaterialSupplier" />
- <EntitySet Name="MaterialType" EntityType="Self.MaterialType" />
- <EntitySet Name="Supplier" EntityType="Self.Supplier" />
- <EntitySet Name="SupplierType" EntityType="Self.SupplierType" />
- <AssociationSet Name="FK_Material_MaterialType" Association="Self.FK_Material_MaterialType">
- <End Role="MaterialType" EntitySet="MaterialType" />
- <End Role="Material" EntitySet="Material" />
- </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_Supplier_SupplierType" Association="Self.FK_Supplier_SupplierType">
- <End Role="SupplierType" EntitySet="SupplierType" />
- <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="Хранилище option2ModelContainer" CdmEntityContainer="BaseDate">
- <EntitySetMapping Name="Material">
- <EntityTypeMapping TypeName="option2Model.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="MaterialSupplier">
- <EntityTypeMapping TypeName="option2Model.MaterialSupplier">
- <MappingFragment StoreEntitySet="MaterialSupplier">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="MaterialID" ColumnName="MaterialID" />
- <ScalarProperty Name="SupplierID" ColumnName="SupplierID" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="MaterialType">
- <EntityTypeMapping TypeName="option2Model.MaterialType">
- <MappingFragment StoreEntitySet="MaterialType">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Supplier">
- <EntityTypeMapping TypeName="option2Model.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>
- <EntitySetMapping Name="SupplierType">
- <EntityTypeMapping TypeName="option2Model.SupplierType">
- <MappingFragment StoreEntitySet="SupplierType">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- </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>
|