123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243 |
- <?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="Хранилище P_GolubevaModel" 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="Authors">
- <Key>
- <PropertyRef Name="IdAuthor" />
- </Key>
- <Property Name="IdAuthor" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
- </EntityType>
- <EntityType Name="Books">
- <Key>
- <PropertyRef Name="IdBook" />
- </Key>
- <Property Name="IdBook" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="Title" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="IdGenre" Type="int" Nullable="false" />
- <Property Name="IdAuthor" Type="int" Nullable="false" />
- <Property Name="Cost" Type="money" Nullable="false" />
- <Property Name="CountInStore" Type="int" Nullable="false" />
- <Property Name="CountInStock" Type="int" Nullable="false" />
- <Property Name="Description" Type="nvarchar(max)" Nullable="false" />
- <Property Name="Image" Type="nvarchar" MaxLength="50" Nullable="false" />
- </EntityType>
- <EntityType Name="Genres">
- <Key>
- <PropertyRef Name="IdGenre" />
- </Key>
- <Property Name="IdGenre" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="GenreName" Type="nvarchar" MaxLength="50" Nullable="false" />
- </EntityType>
- <EntityType Name="Order">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="date" Type="datetime" Nullable="false" />
- <Property Name="count" Type="int" Nullable="false" />
- <Property Name="totalcost" Type="int" Nullable="false" />
- <Property Name="sale" Type="int" Nullable="false" />
- <Property Name="reserve" Type="datetime" Nullable="false" />
- </EntityType>
- <Association Name="FK_Books_Authors">
- <End Role="Authors" Type="Self.Authors" Multiplicity="1" />
- <End Role="Books" Type="Self.Books" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Authors">
- <PropertyRef Name="IdAuthor" />
- </Principal>
- <Dependent Role="Books">
- <PropertyRef Name="IdAuthor" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Books_Genres">
- <End Role="Genres" Type="Self.Genres" Multiplicity="1" />
- <End Role="Books" Type="Self.Books" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Genres">
- <PropertyRef Name="IdGenre" />
- </Principal>
- <Dependent Role="Books">
- <PropertyRef Name="IdGenre" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="Хранилище P_GolubevaModelContainer">
- <EntitySet Name="Authors" EntityType="Self.Authors" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Books" EntityType="Self.Books" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Genres" EntityType="Self.Genres" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Order" EntityType="Self.Order" Schema="dbo" store:Type="Tables" />
- <AssociationSet Name="FK_Books_Authors" Association="Self.FK_Books_Authors">
- <End Role="Authors" EntitySet="Authors" />
- <End Role="Books" EntitySet="Books" />
- </AssociationSet>
- <AssociationSet Name="FK_Books_Genres" Association="Self.FK_Books_Genres">
- <End Role="Genres" EntitySet="Genres" />
- <End Role="Books" EntitySet="Books" />
- </AssociationSet>
- </EntityContainer>
- </Schema>
- </edmx:StorageModels>
- <!-- CSDL content -->
- <edmx:ConceptualModels>
- <Schema Namespace="P_GolubevaModel" 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="Authors">
- <Key>
- <PropertyRef Name="IdAuthor" />
- </Key>
- <Property Name="IdAuthor" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="Books" Relationship="Self.FK_Books_Authors" FromRole="Authors" ToRole="Books" />
- </EntityType>
- <EntityType Name="Books">
- <Key>
- <PropertyRef Name="IdBook" />
- </Key>
- <Property Name="IdBook" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="IdGenre" Type="Int32" Nullable="false" />
- <Property Name="IdAuthor" Type="Int32" Nullable="false" />
- <Property Name="Cost" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
- <Property Name="CountInStore" Type="Int32" Nullable="false" />
- <Property Name="CountInStock" Type="Int32" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Image" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="Authors" Relationship="Self.FK_Books_Authors" FromRole="Books" ToRole="Authors" />
- <NavigationProperty Name="Genres" Relationship="Self.FK_Books_Genres" FromRole="Books" ToRole="Genres" />
- </EntityType>
- <EntityType Name="Genres">
- <Key>
- <PropertyRef Name="IdGenre" />
- </Key>
- <Property Name="IdGenre" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="GenreName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="Books" Relationship="Self.FK_Books_Genres" FromRole="Genres" ToRole="Books" />
- </EntityType>
- <EntityType Name="Order">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="date" Type="DateTime" Nullable="false" Precision="3" />
- <Property Name="count" Type="Int32" Nullable="false" />
- <Property Name="totalcost" Type="Int32" Nullable="false" />
- <Property Name="sale" Type="Int32" Nullable="false" />
- <Property Name="reserve" Type="DateTime" Nullable="false" Precision="3" />
- </EntityType>
- <Association Name="FK_Books_Authors">
- <End Role="Authors" Type="Self.Authors" Multiplicity="1" />
- <End Role="Books" Type="Self.Books" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Authors">
- <PropertyRef Name="IdAuthor" />
- </Principal>
- <Dependent Role="Books">
- <PropertyRef Name="IdAuthor" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_Books_Genres">
- <End Role="Genres" Type="Self.Genres" Multiplicity="1" />
- <End Role="Books" Type="Self.Books" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Genres">
- <PropertyRef Name="IdGenre" />
- </Principal>
- <Dependent Role="Books">
- <PropertyRef Name="IdGenre" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
- <EntitySet Name="Authors" EntityType="Self.Authors" />
- <EntitySet Name="Books" EntityType="Self.Books" />
- <EntitySet Name="Genres" EntityType="Self.Genres" />
- <EntitySet Name="Order" EntityType="Self.Order" />
- <AssociationSet Name="FK_Books_Authors" Association="Self.FK_Books_Authors">
- <End Role="Authors" EntitySet="Authors" />
- <End Role="Books" EntitySet="Books" />
- </AssociationSet>
- <AssociationSet Name="FK_Books_Genres" Association="Self.FK_Books_Genres">
- <End Role="Genres" EntitySet="Genres" />
- <End Role="Books" EntitySet="Books" />
- </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="Хранилище P_GolubevaModelContainer" CdmEntityContainer="Entities">
- <EntitySetMapping Name="Authors">
- <EntityTypeMapping TypeName="P_GolubevaModel.Authors">
- <MappingFragment StoreEntitySet="Authors">
- <ScalarProperty Name="IdAuthor" ColumnName="IdAuthor" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Books">
- <EntityTypeMapping TypeName="P_GolubevaModel.Books">
- <MappingFragment StoreEntitySet="Books">
- <ScalarProperty Name="IdBook" ColumnName="IdBook" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="IdGenre" ColumnName="IdGenre" />
- <ScalarProperty Name="IdAuthor" ColumnName="IdAuthor" />
- <ScalarProperty Name="Cost" ColumnName="Cost" />
- <ScalarProperty Name="CountInStore" ColumnName="CountInStore" />
- <ScalarProperty Name="CountInStock" ColumnName="CountInStock" />
- <ScalarProperty Name="Description" ColumnName="Description" />
- <ScalarProperty Name="Image" ColumnName="Image" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Genres">
- <EntityTypeMapping TypeName="P_GolubevaModel.Genres">
- <MappingFragment StoreEntitySet="Genres">
- <ScalarProperty Name="IdGenre" ColumnName="IdGenre" />
- <ScalarProperty Name="GenreName" ColumnName="GenreName" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Order">
- <EntityTypeMapping TypeName="P_GolubevaModel.Order">
- <MappingFragment StoreEntitySet="Order">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="date" ColumnName="date" />
- <ScalarProperty Name="count" ColumnName="count" />
- <ScalarProperty Name="totalcost" ColumnName="totalcost" />
- <ScalarProperty Name="sale" ColumnName="sale" />
- <ScalarProperty Name="reserve" ColumnName="reserve" />
- </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>
|