123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- <?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="Хранилище PEzhov_examModel" 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="Books">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Heading" Type="nvarchar(max)" Nullable="false" />
- <Property Name="Style" Type="nvarchar(max)" Nullable="false" />
- <Property Name="Writer" Type="nvarchar(max)" Nullable="false" />
- <Property Name="Price" Type="decimal" Precision="18" Scale="2" Nullable="false" />
- <Property Name="StoreCount" Type="int" Nullable="false" />
- <Property Name="StockCount" Type="int" Nullable="false" />
- <Property Name="Specification" Type="nvarchar(max)" Nullable="false" />
- <Property Name="Image" Type="nvarchar(max)" Nullable="false" />
- </EntityType>
- <EntityType Name="Ordering">
- <Key>
- <PropertyRef Name="Id" />
- </Key>
- <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="SerialNumber" Type="int" Nullable="false" />
- <Property Name="IdBooks" Type="int" Nullable="false" />
- <Property Name="Count" Type="int" Nullable="false" />
- <Property Name="DateOrdering" Type="date" Nullable="false" />
- </EntityType>
- <Association Name="FK_Order_Book">
- <End Role="Books" Type="Self.Books" Multiplicity="1" />
- <End Role="Ordering" Type="Self.Ordering" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Books">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="Ordering">
- <PropertyRef Name="IdBooks" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="Хранилище PEzhov_examModelContainer">
- <EntitySet Name="Books" EntityType="Self.Books" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Ordering" EntityType="Self.Ordering" Schema="dbo" store:Type="Tables" />
- <AssociationSet Name="FK_Order_Book" Association="Self.FK_Order_Book">
- <End Role="Books" EntitySet="Books" />
- <End Role="Ordering" EntitySet="Ordering" />
- </AssociationSet>
- </EntityContainer>
- </Schema>
- </edmx:StorageModels>
- <!-- CSDL content -->
- <edmx:ConceptualModels>
- <Schema Namespace="PEzhov_examModel" 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="Books">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Heading" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Style" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Writer" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Price" Type="Decimal" Precision="18" Scale="2" Nullable="false" />
- <Property Name="StoreCount" Type="Int32" Nullable="false" />
- <Property Name="StockCount" Type="Int32" Nullable="false" />
- <Property Name="Specification" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Image" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="Ordering" Relationship="Self.FK_Order_Book" FromRole="Books" ToRole="Ordering" />
- </EntityType>
- <EntityType Name="Ordering">
- <Key>
- <PropertyRef Name="Id" />
- </Key>
- <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="SerialNumber" Type="Int32" Nullable="false" />
- <Property Name="IdBooks" Type="Int32" Nullable="false" />
- <Property Name="Count" Type="Int32" Nullable="false" />
- <Property Name="DateOrdering" Type="DateTime" Nullable="false" Precision="0" />
- <NavigationProperty Name="Books" Relationship="Self.FK_Order_Book" FromRole="Ordering" ToRole="Books" />
- </EntityType>
- <Association Name="FK_Order_Book">
- <End Role="Books" Type="Self.Books" Multiplicity="1" />
- <End Role="Ordering" Type="Self.Ordering" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Books">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="Ordering">
- <PropertyRef Name="IdBooks" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
- <EntitySet Name="Books" EntityType="Self.Books" />
- <EntitySet Name="Ordering" EntityType="Self.Ordering" />
- <AssociationSet Name="FK_Order_Book" Association="Self.FK_Order_Book">
- <End Role="Books" EntitySet="Books" />
- <End Role="Ordering" EntitySet="Ordering" />
- </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="Хранилище PEzhov_examModelContainer" CdmEntityContainer="Entities">
- <EntitySetMapping Name="Books">
- <EntityTypeMapping TypeName="PEzhov_examModel.Books">
- <MappingFragment StoreEntitySet="Books">
- <ScalarProperty Name="id" ColumnName="id" />
- <ScalarProperty Name="Heading" ColumnName="Heading" />
- <ScalarProperty Name="Style" ColumnName="Style" />
- <ScalarProperty Name="Writer" ColumnName="Writer" />
- <ScalarProperty Name="Price" ColumnName="Price" />
- <ScalarProperty Name="StoreCount" ColumnName="StoreCount" />
- <ScalarProperty Name="StockCount" ColumnName="StockCount" />
- <ScalarProperty Name="Specification" ColumnName="Specification" />
- <ScalarProperty Name="Image" ColumnName="Image" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Ordering">
- <EntityTypeMapping TypeName="PEzhov_examModel.Ordering">
- <MappingFragment StoreEntitySet="Ordering">
- <ScalarProperty Name="Id" ColumnName="Id" />
- <ScalarProperty Name="SerialNumber" ColumnName="SerialNumber" />
- <ScalarProperty Name="IdBooks" ColumnName="IdBooks" />
- <ScalarProperty Name="Count" ColumnName="Count" />
- <ScalarProperty Name="DateOrdering" ColumnName="DateOrdering" />
- </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>
|