<?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="Хранилище PBOLDIN_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="BookShop">
          <Key>
            <PropertyRef Name="id" />
          </Key>
          <Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="Name" Type="nvarchar(max)" Nullable="false" />
          <Property Name="Genre" Type="nvarchar(max)" Nullable="false" />
          <Property Name="Author" Type="nvarchar(max)" Nullable="false" />
          <Property Name="Cost" Type="decimal" Precision="18" Scale="2" Nullable="false" />
          <Property Name="CountStore" Type="int" Nullable="false" />
          <Property Name="CountStock" Type="int" Nullable="false" />
          <Property Name="Description" Type="nvarchar(max)" Nullable="false" />
          <Property Name="Cover" Type="nvarchar(max)" Nullable="false" />
        </EntityType>
        <EntityType Name="Orders">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
          <Property Name="NOrder" Type="int" Nullable="false" />
          <Property Name="IdBook" Type="int" Nullable="false" />
          <Property Name="Count" Type="int" Nullable="false" />
          <Property Name="DateOrder" Type="date" Nullable="false" />
        </EntityType>
        <Association Name="FK_Order_Book">
          <End Role="BookShop" Type="Self.BookShop" Multiplicity="1" />
          <End Role="Orders" Type="Self.Orders" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="BookShop">
              <PropertyRef Name="id" />
            </Principal>
            <Dependent Role="Orders">
              <PropertyRef Name="IdBook" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityContainer Name="Хранилище PBOLDIN_EXAMModelContainer">
          <EntitySet Name="BookShop" EntityType="Self.BookShop" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="Orders" EntityType="Self.Orders" Schema="dbo" store:Type="Tables" />
          <AssociationSet Name="FK_Order_Book" Association="Self.FK_Order_Book">
            <End Role="BookShop" EntitySet="BookShop" />
            <End Role="Orders" EntitySet="Orders" />
          </AssociationSet>
        </EntityContainer>
      </Schema>
    </edmx:StorageModels>
    <!-- CSDL content -->
    <edmx:ConceptualModels>
      <Schema Namespace="PBOLDIN_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="BookShop">
          <Key>
            <PropertyRef Name="id" />
          </Key>
          <Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="Name" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
          <Property Name="Genre" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
          <Property Name="Author" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
          <Property Name="Cost" Type="Decimal" Precision="18" Scale="2" Nullable="false" />
          <Property Name="CountStore" Type="Int32" Nullable="false" />
          <Property Name="CountStock" Type="Int32" Nullable="false" />
          <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
          <Property Name="Cover" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" Nullable="false" />
          <NavigationProperty Name="Orders" Relationship="Self.FK_Order_Book" FromRole="BookShop" ToRole="Orders" />
        </EntityType>
        <EntityType Name="Orders">
          <Key>
            <PropertyRef Name="Id" />
          </Key>
          <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
          <Property Name="NOrder" Type="Int32" Nullable="false" />
          <Property Name="IdBook" Type="Int32" Nullable="false" />
          <Property Name="Count" Type="Int32" Nullable="false" />
          <Property Name="DateOrder" Type="DateTime" Nullable="false" Precision="0" />
          <NavigationProperty Name="BookShop" Relationship="Self.FK_Order_Book" FromRole="Orders" ToRole="BookShop" />
        </EntityType>
        <Association Name="FK_Order_Book">
          <End Role="BookShop" Type="Self.BookShop" Multiplicity="1" />
          <End Role="Orders" Type="Self.Orders" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="BookShop">
              <PropertyRef Name="id" />
            </Principal>
            <Dependent Role="Orders">
              <PropertyRef Name="IdBook" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
          <EntitySet Name="BookShop" EntityType="Self.BookShop" />
          <EntitySet Name="Orders" EntityType="Self.Orders" />
          <AssociationSet Name="FK_Order_Book" Association="Self.FK_Order_Book">
            <End Role="BookShop" EntitySet="BookShop" />
            <End Role="Orders" EntitySet="Orders" />
          </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="Хранилище PBOLDIN_EXAMModelContainer" CdmEntityContainer="Entities">
          <EntitySetMapping Name="BookShop">
            <EntityTypeMapping TypeName="PBOLDIN_EXAMModel.BookShop">
              <MappingFragment StoreEntitySet="BookShop">
                <ScalarProperty Name="id" ColumnName="id" />
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="Genre" ColumnName="Genre" />
                <ScalarProperty Name="Author" ColumnName="Author" />
                <ScalarProperty Name="Cost" ColumnName="Cost" />
                <ScalarProperty Name="CountStore" ColumnName="CountStore" />
                <ScalarProperty Name="CountStock" ColumnName="CountStock" />
                <ScalarProperty Name="Description" ColumnName="Description" />
                <ScalarProperty Name="Cover" ColumnName="Cover" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Orders">
            <EntityTypeMapping TypeName="PBOLDIN_EXAMModel.Orders">
              <MappingFragment StoreEntitySet="Orders">
                <ScalarProperty Name="Id" ColumnName="Id" />
                <ScalarProperty Name="NOrder" ColumnName="NOrder" />
                <ScalarProperty Name="IdBook" ColumnName="IdBook" />
                <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>