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="Хранилище P_Vorobiov_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="Title" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="Genre" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="Author" Type="nvarchar" MaxLength="50" Nullable="false" />
- <Property Name="Cost" Type="decimal" Precision="18" Scale="2" Nullable="false" />
- <Property Name="CountInStore" Type="int" Nullable="false" />
- <Property Name="CountInStock" Type="int" Nullable="false" />
- <Property Name="Description" Type="nvarchar" MaxLength="2500" Nullable="false" />
- <Property Name="Cover" Type="nvarchar" MaxLength="500" Nullable="false" />
- </EntityType>
- <EntityType Name="Order">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
- <Property Name="NumberOrder" Type="int" Nullable="false" />
- <Property Name="BookID" Type="int" Nullable="false" />
- <Property Name="Count" Type="int" Nullable="false" />
- <Property Name="DateOrder" Type="date" Nullable="false" />
- </EntityType>
- <Association Name="FK_Order_Books">
- <End Role="Books" Type="Self.Books" Multiplicity="1" />
- <End Role="Order" Type="Self.Order" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Books">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="Order">
- <PropertyRef Name="BookID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="Хранилище P_Vorobiov_ExamModelContainer">
- <EntitySet Name="Books" EntityType="Self.Books" Schema="dbo" store:Type="Tables" />
- <EntitySet Name="Order" EntityType="Self.Order" Schema="dbo" store:Type="Tables" />
- <AssociationSet Name="FK_Order_Books" Association="Self.FK_Order_Books">
- <End Role="Books" EntitySet="Books" />
- <End Role="Order" EntitySet="Order" />
- </AssociationSet>
- </EntityContainer>
- </Schema>
- </edmx:StorageModels>
- <!-- CSDL content -->
- <edmx:ConceptualModels>
- <Schema Namespace="P_Vorobiov_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="Title" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Genre" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Author" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Cost" Type="Decimal" Precision="18" Scale="2" Nullable="false" />
- <Property Name="CountInStore" Type="Int32" Nullable="false" />
- <Property Name="CountInStock" Type="Int32" Nullable="false" />
- <Property Name="Description" Type="String" MaxLength="2500" FixedLength="false" Unicode="true" Nullable="false" />
- <Property Name="Cover" Type="String" MaxLength="500" FixedLength="false" Unicode="true" Nullable="false" />
- <NavigationProperty Name="Order" Relationship="Self.FK_Order_Books" FromRole="Books" ToRole="Order" />
- </EntityType>
- <EntityType Name="Order">
- <Key>
- <PropertyRef Name="ID" />
- </Key>
- <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
- <Property Name="NumberOrder" Type="Int32" Nullable="false" />
- <Property Name="BookID" Type="Int32" Nullable="false" />
- <Property Name="Count" Type="Int32" Nullable="false" />
- <Property Name="DateOrder" Type="DateTime" Nullable="false" Precision="0" />
- <NavigationProperty Name="Books" Relationship="Self.FK_Order_Books" FromRole="Order" ToRole="Books" />
- </EntityType>
- <Association Name="FK_Order_Books">
- <End Role="Books" Type="Self.Books" Multiplicity="1" />
- <End Role="Order" Type="Self.Order" Multiplicity="*" />
- <ReferentialConstraint>
- <Principal Role="Books">
- <PropertyRef Name="ID" />
- </Principal>
- <Dependent Role="Order">
- <PropertyRef Name="BookID" />
- </Dependent>
- </ReferentialConstraint>
- </Association>
- <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
- <EntitySet Name="Books" EntityType="Self.Books" />
- <EntitySet Name="Order" EntityType="Self.Order" />
- <AssociationSet Name="FK_Order_Books" Association="Self.FK_Order_Books">
- <End Role="Books" EntitySet="Books" />
- <End Role="Order" EntitySet="Order" />
- </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_Vorobiov_ExamModelContainer" CdmEntityContainer="Entities">
- <EntitySetMapping Name="Books">
- <EntityTypeMapping TypeName="P_Vorobiov_ExamModel.Books">
- <MappingFragment StoreEntitySet="Books">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="Genre" ColumnName="Genre" />
- <ScalarProperty Name="Author" ColumnName="Author" />
- <ScalarProperty Name="Cost" ColumnName="Cost" />
- <ScalarProperty Name="CountInStore" ColumnName="CountInStore" />
- <ScalarProperty Name="CountInStock" ColumnName="CountInStock" />
- <ScalarProperty Name="Description" ColumnName="Description" />
- <ScalarProperty Name="Cover" ColumnName="Cover" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Order">
- <EntityTypeMapping TypeName="P_Vorobiov_ExamModel.Order">
- <MappingFragment StoreEntitySet="Order">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="NumberOrder" ColumnName="NumberOrder" />
- <ScalarProperty Name="BookID" ColumnName="BookID" />
- <ScalarProperty Name="Count" ColumnName="Count" />
- <ScalarProperty Name="DateOrder" ColumnName="DateOrder" />
- </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>
|