123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245 |
- <?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="Хранилище 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="Book">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="title" Type="nvarchar(max)" />
- <Property Name="genre" Type="nvarchar(max)" />
- <Property Name="author" Type="nvarchar(max)" />
- <Property Name="countStrore" Type="int" />
- <Property Name="countStock" Type="int" />
- <Property Name="description" Type="nvarchar(max)" />
- <Property Name="cover" Type="nvarchar(max)" />
- <Property Name="price" Type="float" />
- </EntityType>
- <EntityType Name="Order">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="reserved" Type="datetime" />
- </EntityType>
- <EntityType Name="OrderBooks">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="bookId" Type="int" />
- <Property Name="count" Type="int" />
- <Property Name="orderId" Type="int" Nullable="false" />
- </EntityType>
- <EntityType Name="sysdiagrams">
- <Key>
- <PropertyRef Name="diagram_id" />
- </Key>
- <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
- <Property Name="principal_id" Type="int" Nullable="false" />
- <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="version" Type="int" />
- <Property Name="definition" Type="varbinary(max)" />
- </EntityType>
- <Association Name="FK_OrderBooks_Book">
- <End Role="Book" Type="Self.Book" Multiplicity="0..1" />
- <End Role="OrderBooks" Type="Self.OrderBooks" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Book">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="OrderBooks">
- <PropertyRef Name="bookId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_OrderBooks_Order1">
- <End Role="Order" Type="Self.Order" Multiplicity="1" />
- <End Role="OrderBooks" Type="Self.OrderBooks" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Order">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="OrderBooks">
- <PropertyRef Name="orderId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="Хранилище ModelContainer">
- <EntitySet Name="Book" EntityType="Self.Book" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Order" EntityType="Self.Order" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="OrderBooks" EntityType="Self.OrderBooks" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
- <AssociationSet Name="FK_OrderBooks_Book" Association="Self.FK_OrderBooks_Book">
- <End Role="Book" EntitySet="Book" />
- <End Role="OrderBooks" EntitySet="OrderBooks" />
- </AssociationSet>
- <AssociationSet Name="FK_OrderBooks_Order1" Association="Self.FK_OrderBooks_Order1">
- <End Role="Order" EntitySet="Order" />
- <End Role="OrderBooks" EntitySet="OrderBooks" />
- </AssociationSet>
- </EntityContainer>
- </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">
- <EntityType Name="sysdiagram">
- <Key>
- <PropertyRef Name="diagram_id" />
- </Key>
- <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="principal_id" Type="Int32" Nullable="false" />
- <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="version" Type="Int32" />
- <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
- </EntityType>
- <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
- <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagram" />
- <EntitySet Name="Books" EntityType="Model.Book" />
- <EntitySet Name="Orders" EntityType="Model.Order" />
- <EntitySet Name="OrderBooks" EntityType="Model.OrderBook" />
- <AssociationSet Name="FK_OrderBooks_Book" Association="Model.FK_OrderBooks_Book">
- <End Role="Book" EntitySet="Books" />
- <End Role="OrderBook" EntitySet="OrderBooks" />
- </AssociationSet>
- <AssociationSet Name="FK_OrderBooks_Order1" Association="Model.FK_OrderBooks_Order1">
- <End Role="Order" EntitySet="Orders" />
- <End Role="OrderBook" EntitySet="OrderBooks" />
- </AssociationSet>
- </EntityContainer>
- <EntityType Name="Book">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="title" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
- <Property Name="genre" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
- <Property Name="author" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
- <Property Name="countStrore" Type="Int32" />
- <Property Name="countStock" Type="Int32" />
- <Property Name="description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
- <Property Name="cover" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
- <Property Name="price" Type="Double" />
- <NavigationProperty Name="OrderBooks" Relationship="Model.FK_OrderBooks_Book" FromRole="Book" ToRole="OrderBook" />
- </EntityType>
- <EntityType Name="Order">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <NavigationProperty Name="OrderBooks" Relationship="Model.FK_OrderBooks_Order1" FromRole="Order" ToRole="OrderBook" />
- <Property Name="reserved" Type="DateTime" Precision="3" />
- </EntityType>
- <EntityType Name="OrderBook">
- <Key>
- <PropertyRef Name="id" />
- </Key>
- <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="bookId" Type="Int32" />
- <Property Name="count" Type="Int32" />
- <NavigationProperty Name="Book" Relationship="Model.FK_OrderBooks_Book" FromRole="OrderBook" ToRole="Book" />
- <Property Name="orderId" Type="Int32" Nullable="false" />
- <NavigationProperty Name="Order1" Relationship="Model.FK_OrderBooks_Order1" FromRole="OrderBook" ToRole="Order" />
- </EntityType>
- <Association Name="FK_OrderBooks_Book">
- <End Type="Model.Book" Role="Book" Multiplicity="0..1" />
- <End Type="Model.OrderBook" Role="OrderBook" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Book">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="OrderBook">
- <PropertyRef Name="bookId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <Association Name="FK_OrderBooks_Order1">
- <End Type="Model.Order" Role="Order" Multiplicity="1" />
- <End Type="Model.OrderBook" Role="OrderBook" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Order">
- <PropertyRef Name="id" />
- </Principal>
- <Dependent Role="OrderBook">
- <PropertyRef Name="orderId" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- </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="Хранилище ModelContainer" CdmEntityContainer="Entities">
- <EntitySetMapping Name="sysdiagrams">
- <EntityTypeMapping TypeName="Model.sysdiagram">
- <MappingFragment StoreEntitySet="sysdiagrams">
- <ScalarProperty Name="name" ColumnName="name" />
- <ScalarProperty Name="principal_id" ColumnName="principal_id" />
- <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
- <ScalarProperty Name="version" ColumnName="version" />
- <ScalarProperty Name="definition" ColumnName="definition" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Books">
- <EntityTypeMapping TypeName="Model.Book">
- <MappingFragment StoreEntitySet="Book">
- <ScalarProperty Name="price" ColumnName="price" />
- <ScalarProperty Name="cover" ColumnName="cover" />
- <ScalarProperty Name="description" ColumnName="description" />
- <ScalarProperty Name="countStock" ColumnName="countStock" />
- <ScalarProperty Name="countStrore" ColumnName="countStrore" />
- <ScalarProperty Name="author" ColumnName="author" />
- <ScalarProperty Name="genre" ColumnName="genre" />
- <ScalarProperty Name="title" ColumnName="title" />
- <ScalarProperty Name="id" ColumnName="id" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Orders">
- <EntityTypeMapping TypeName="Model.Order">
- <MappingFragment StoreEntitySet="Order">
- <ScalarProperty Name="reserved" ColumnName="reserved" />
- <ScalarProperty Name="id" ColumnName="id" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="OrderBooks">
- <EntityTypeMapping TypeName="Model.OrderBook">
- <MappingFragment StoreEntitySet="OrderBooks">
- <ScalarProperty Name="orderId" ColumnName="orderId" />
- <ScalarProperty Name="count" ColumnName="count" />
- <ScalarProperty Name="bookId" ColumnName="bookId" />
- <ScalarProperty Name="id" ColumnName="id" />
- </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="true" />
- <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>
|