<?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="LibraryModel.Store" 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="BaseSet">
          <Key>
            <PropertyRef Name="flag" />
          </Key>
          <Property Name="Stu_BorrowNums" Type="int" />
          <Property Name="Tch_BorrowNums" Type="int" />
          <Property Name="Borrow_days" Type="int" />
          <Property Name="Rates" Type="int" />
          <Property Name="flag" Type="varchar" MaxLength="255" Nullable="false" />
          <Property Name="Tch_BorrowDays" Type="int" />
        </EntityType>
        <EntityType Name="BookClass">
          <Key>
            <PropertyRef Name="ClassID" />
          </Key>
          <Property Name="ClassID" Type="char" MaxLength="10" Nullable="false" />
          <Property Name="Classname" Type="char" MaxLength="30" />
        </EntityType>
        <EntityType Name="BookInfo">
          <Key>
            <PropertyRef Name="BookID" />
          </Key>
          <Property Name="BookID" Type="char" MaxLength="8" Nullable="false" />
          <Property Name="ISBN" Type="char" MaxLength="30" />
          <Property Name="Title" Type="char" MaxLength="40" />
          <Property Name="Publish" Type="char" MaxLength="40" />
          <Property Name="Author" Type="char" MaxLength="30" />
          <Property Name="Words" Type="int" />
          <Property Name="PublisherID" Type="char" MaxLength="4" />
          <Property Name="Number" Type="int" />
          <Property Name="Price" Type="money" />
          <Property Name="Keyword" Type="char" MaxLength="30" />
          <Property Name="Abstract" Type="varchar" MaxLength="1000" />
          <Property Name="ClassID" Type="char" MaxLength="10" />
        </EntityType>
        <EntityType Name="CertificateInfo">
          <Key>
            <PropertyRef Name="Cert_id" />
          </Key>
          <Property Name="Cert_id" Type="char" MaxLength="5" Nullable="false" />
          <Property Name="Cert_name" Type="char" MaxLength="10" />
          <Property Name="Cert_value" Type="char" MaxLength="18" />
          <Property Name="Name" Type="char" MaxLength="8" />
          <Property Name="Depart" Type="char" MaxLength="20" />
          <Property Name="flag" Type="tinyint" />
          <Property Name="Cert_type" Type="char" MaxLength="1" />
        </EntityType>
        <EntityType Name="Depart">
          <Key>
            <PropertyRef Name="Dept_ID" />
          </Key>
          <Property Name="Dept_ID" Type="char" MaxLength="10" Nullable="false" />
          <Property Name="Dept_Name" Type="char" MaxLength="30" />
        </EntityType>
        <EntityType Name="Loan">
          <Key>
            <PropertyRef Name="BookID" />
            <PropertyRef Name="Cert_id" />
            <PropertyRef Name="Loandates" />
          </Key>
          <Property Name="BookID" Type="char" MaxLength="8" Nullable="false" />
          <Property Name="Cert_id" Type="char" MaxLength="5" Nullable="false" />
          <Property Name="Loandates" Type="date" Nullable="false" />
          <Property Name="Return" Type="date" />
          <Property Name="flag" Type="tinyint" />
        </EntityType>
        <EntityType Name="Publisherlnfo">
          <Key>
            <PropertyRef Name="PublisherId" />
          </Key>
          <Property Name="PublisherId" Type="char" MaxLength="4" Nullable="false" />
          <Property Name="Publisher" Type="char" MaxLength="30" />
          <Property Name="Address" Type="char" MaxLength="50" />
          <Property Name="Tel" Type="char" MaxLength="16" />
          <Property Name="Fax" Type="char" MaxLength="16" />
          <Property Name="Postcode" Type="numeric" Precision="6" Scale="0" />
          <Property Name="http" Type="char" MaxLength="16" />
        </EntityType>
        <EntityType Name="user">
          <Key>
            <PropertyRef Name="userId" />
          </Key>
          <Property Name="userId" Type="int" Nullable="false" />
          <Property Name="username" Type="char" MaxLength="40" />
          <Property Name="password" Type="char" MaxLength="40" />
          <Property Name="flag" Type="int" />
        </EntityType>
        <Association Name="Cert_id">
          <End Role="CertificateInfo" Type="Self.CertificateInfo" Multiplicity="1" />
          <End Role="Loan" Type="Self.Loan" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="CertificateInfo">
              <PropertyRef Name="Cert_id" />
            </Principal>
            <Dependent Role="Loan">
              <PropertyRef Name="Cert_id" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="PublisherID">
          <End Role="Publisherlnfo" Type="Self.Publisherlnfo" Multiplicity="0..1" />
          <End Role="BookInfo" Type="Self.BookInfo" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Publisherlnfo">
              <PropertyRef Name="PublisherId" />
            </Principal>
            <Dependent Role="BookInfo">
              <PropertyRef Name="PublisherID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityContainer Name="LibraryModelStoreContainer">
          <EntitySet Name="BaseSet" EntityType="Self.BaseSet" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="BookClass" EntityType="Self.BookClass" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="BookInfo" EntityType="Self.BookInfo" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="CertificateInfo" EntityType="Self.CertificateInfo" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="Depart" EntityType="Self.Depart" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="Loan" EntityType="Self.Loan" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="Publisherlnfo" EntityType="Self.Publisherlnfo" Schema="dbo" store:Type="Tables" />
          <EntitySet Name="user" EntityType="Self.user" Schema="dbo" store:Type="Tables" />
          <AssociationSet Name="Cert_id" Association="Self.Cert_id">
            <End Role="CertificateInfo" EntitySet="CertificateInfo" />
            <End Role="Loan" EntitySet="Loan" />
          </AssociationSet>
          <AssociationSet Name="PublisherID" Association="Self.PublisherID">
            <End Role="Publisherlnfo" EntitySet="Publisherlnfo" />
            <End Role="BookInfo" EntitySet="BookInfo" />
          </AssociationSet>
        </EntityContainer>
      </Schema></edmx:StorageModels>
    <!-- CSDL content -->
    <edmx:ConceptualModels>
      <Schema Namespace="LibraryModel" 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="BookClass">
          <Key>
            <PropertyRef Name="ClassID" />
          </Key>
          <Property Name="ClassID" Type="String" MaxLength="10" FixedLength="true" Unicode="false" Nullable="false" />
          <Property Name="Classname" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
        </EntityType>
        <EntityType Name="BookInfo">
          <Key>
            <PropertyRef Name="BookID" />
          </Key>
          <Property Name="BookID" Type="String" MaxLength="8" FixedLength="true" Unicode="false" Nullable="false" />
          <Property Name="ISBN" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
          <Property Name="Title" Type="String" MaxLength="40" FixedLength="true" Unicode="false" />
          <Property Name="Publish" Type="String" MaxLength="40" FixedLength="true" Unicode="false" />
          <Property Name="Author" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
          <Property Name="Words" Type="Int32" />
          <Property Name="PublisherID" Type="String" MaxLength="4" FixedLength="true" Unicode="false" />
          <Property Name="Number" Type="Int32" />
          <Property Name="Price" Type="Decimal" Precision="19" Scale="4" />
          <Property Name="Keyword" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
          <Property Name="Abstract" Type="String" MaxLength="1000" FixedLength="false" Unicode="false" />
          <NavigationProperty Name="Publisherlnfo" Relationship="Self.PublisherID" FromRole="BookInfo" ToRole="Publisherlnfo" />
          <Property Name="ClassID" Type="String" MaxLength="10" FixedLength="true" Unicode="false" />
        </EntityType>
        <EntityType Name="CertificateInfo">
          <Key>
            <PropertyRef Name="Cert_id" />
          </Key>
          <Property Name="Cert_id" Type="String" MaxLength="5" FixedLength="true" Unicode="false" Nullable="false" />
          <Property Name="Cert_name" Type="String" MaxLength="10" FixedLength="true" Unicode="false" />
          <Property Name="Cert_value" Type="String" MaxLength="18" FixedLength="true" Unicode="false" />
          <Property Name="Name" Type="String" MaxLength="8" FixedLength="true" Unicode="false" />
          <Property Name="Depart" Type="String" MaxLength="20" FixedLength="true" Unicode="false" />
          <Property Name="flag" Type="Byte" />
          <NavigationProperty Name="Loan" Relationship="Self.Cert_id" FromRole="CertificateInfo" ToRole="Loan" />
          <Property Name="Cert_type" Type="String" MaxLength="1" FixedLength="true" Unicode="false" />
        </EntityType>
        <EntityType Name="Loan">
          <Key>
            <PropertyRef Name="BookID" />
            <PropertyRef Name="Cert_id" />
            <PropertyRef Name="Loandates" />
          </Key>
          <Property Name="BookID" Type="String" MaxLength="8" FixedLength="true" Unicode="false" Nullable="false" />
          <Property Name="Cert_id" Type="String" MaxLength="5" FixedLength="true" Unicode="false" Nullable="false" />
          <Property Name="Loandates" Type="DateTime" Nullable="false" Precision="0" />
          <Property Name="Return" Type="DateTime" Precision="0" />
          <Property Name="flag" Type="Byte" />
          <NavigationProperty Name="CertificateInfo" Relationship="Self.Cert_id" FromRole="Loan" ToRole="CertificateInfo" />
        </EntityType>
        <EntityType Name="Publisherlnfo">
          <Key>
            <PropertyRef Name="PublisherId" />
          </Key>
          <Property Name="PublisherId" Type="String" MaxLength="4" FixedLength="true" Unicode="false" Nullable="false" />
          <Property Name="Publisher" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
          <Property Name="Address" Type="String" MaxLength="50" FixedLength="true" Unicode="false" />
          <Property Name="Tel" Type="String" MaxLength="16" FixedLength="true" Unicode="false" />
          <Property Name="Fax" Type="String" MaxLength="16" FixedLength="true" Unicode="false" />
          <Property Name="Postcode" Type="Decimal" Precision="6" Scale="0" />
          <Property Name="http" Type="String" MaxLength="16" FixedLength="true" Unicode="false" />
          <NavigationProperty Name="BookInfo" Relationship="Self.PublisherID" FromRole="Publisherlnfo" ToRole="BookInfo" />
        </EntityType>
        <EntityType Name="user">
          <Key>
            <PropertyRef Name="userId" />
          </Key>
          <Property Name="userId" Type="Int32" Nullable="false" />
          <Property Name="username" Type="String" MaxLength="40" FixedLength="true" Unicode="false" />
          <Property Name="password" Type="String" MaxLength="40" FixedLength="true" Unicode="false" />
          <Property Name="flag" Type="Int32" />
        </EntityType>
        <Association Name="PublisherID">
          <End Role="Publisherlnfo" Type="Self.Publisherlnfo" Multiplicity="0..1">
            <OnDelete Action="Cascade" />
          </End>
          <End Role="BookInfo" Type="Self.BookInfo" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="Publisherlnfo">
              <PropertyRef Name="PublisherId" />
            </Principal>
            <Dependent Role="BookInfo">
              <PropertyRef Name="PublisherID" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <Association Name="Cert_id">
          <End Role="CertificateInfo" Type="Self.CertificateInfo" Multiplicity="1" />
          <End Role="Loan" Type="Self.Loan" Multiplicity="*" />
          <ReferentialConstraint>
            <Principal Role="CertificateInfo">
              <PropertyRef Name="Cert_id" />
            </Principal>
            <Dependent Role="Loan">
              <PropertyRef Name="Cert_id" />
            </Dependent>
          </ReferentialConstraint>
        </Association>
        <EntityContainer Name="LibraryEntities1" annotation:LazyLoadingEnabled="true">
          <EntitySet Name="BookClass" EntityType="Self.BookClass" />
          <EntitySet Name="BookInfo" EntityType="Self.BookInfo" />
          <EntitySet Name="CertificateInfo" EntityType="Self.CertificateInfo" />
          <EntitySet Name="Loan" EntityType="Self.Loan" />
          <EntitySet Name="Publisherlnfo" EntityType="Self.Publisherlnfo" />
          <EntitySet Name="user" EntityType="Self.user" />
          <AssociationSet Name="PublisherID" Association="Self.PublisherID">
            <End Role="Publisherlnfo" EntitySet="Publisherlnfo" />
            <End Role="BookInfo" EntitySet="BookInfo" />
          </AssociationSet>
          <AssociationSet Name="Cert_id" Association="Self.Cert_id">
            <End Role="CertificateInfo" EntitySet="CertificateInfo" />
            <End Role="Loan" EntitySet="Loan" />
          </AssociationSet>
          <EntitySet Name="BaseSet" EntityType="LibraryModel.BaseSet" />
          <EntitySet Name="Depart" EntityType="LibraryModel.Depart" />
        </EntityContainer>
        <EntityType Name="BaseSet">
          <Key>
            <PropertyRef Name="flag" />
          </Key>
          <Property Name="Stu_BorrowNums" Type="Int32" />
          <Property Name="Tch_BorrowNums" Type="Int32" />
          <Property Name="Borrow_days" Type="Int32" />
          <Property Name="Rates" Type="Int32" />
          <Property Name="flag" Type="String" Nullable="false" MaxLength="255" FixedLength="false" Unicode="false" />
          <Property Name="Tch_BorrowDays" Type="Int32" />
        </EntityType>
        <EntityType Name="Depart">
          <Key>
            <PropertyRef Name="Dept_ID" />
          </Key>
          <Property Name="Dept_ID" Type="String" Nullable="false" MaxLength="10" FixedLength="true" Unicode="false" />
          <Property Name="Dept_Name" Type="String" MaxLength="30" FixedLength="true" Unicode="false" />
        </EntityType>
      </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="LibraryModelStoreContainer" CdmEntityContainer="LibraryEntities1">
          <EntitySetMapping Name="BookClass">
            <EntityTypeMapping TypeName="LibraryModel.BookClass">
              <MappingFragment StoreEntitySet="BookClass">
                <ScalarProperty Name="ClassID" ColumnName="ClassID" />
                <ScalarProperty Name="Classname" ColumnName="Classname" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="BookInfo">
            <EntityTypeMapping TypeName="LibraryModel.BookInfo">
              <MappingFragment StoreEntitySet="BookInfo">
                <ScalarProperty Name="ClassID" ColumnName="ClassID" />
                <ScalarProperty Name="BookID" ColumnName="BookID" />
                <ScalarProperty Name="ISBN" ColumnName="ISBN" />
                <ScalarProperty Name="Title" ColumnName="Title" />
                <ScalarProperty Name="Publish" ColumnName="Publish" />
                <ScalarProperty Name="Author" ColumnName="Author" />
                <ScalarProperty Name="Words" ColumnName="Words" />
                <ScalarProperty Name="PublisherID" ColumnName="PublisherID" />
                <ScalarProperty Name="Number" ColumnName="Number" />
                <ScalarProperty Name="Price" ColumnName="Price" />
                <ScalarProperty Name="Keyword" ColumnName="Keyword" />
                <ScalarProperty Name="Abstract" ColumnName="Abstract" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="CertificateInfo">
            <EntityTypeMapping TypeName="LibraryModel.CertificateInfo">
              <MappingFragment StoreEntitySet="CertificateInfo">
                <ScalarProperty Name="Cert_type" ColumnName="Cert_type" />
                <ScalarProperty Name="Cert_id" ColumnName="Cert_id" />
                <ScalarProperty Name="Cert_name" ColumnName="Cert_name" />
                <ScalarProperty Name="Cert_value" ColumnName="Cert_value" />
                <ScalarProperty Name="Name" ColumnName="Name" />
                <ScalarProperty Name="Depart" ColumnName="Depart" />
                <ScalarProperty Name="flag" ColumnName="flag" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Loan">
            <EntityTypeMapping TypeName="LibraryModel.Loan">
              <MappingFragment StoreEntitySet="Loan">
                <ScalarProperty Name="BookID" ColumnName="BookID" />
                <ScalarProperty Name="Cert_id" ColumnName="Cert_id" />
                <ScalarProperty Name="Loandates" ColumnName="Loandates" />
                <ScalarProperty Name="Return" ColumnName="Return" />
                <ScalarProperty Name="flag" ColumnName="flag" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Publisherlnfo">
            <EntityTypeMapping TypeName="LibraryModel.Publisherlnfo">
              <MappingFragment StoreEntitySet="Publisherlnfo">
                <ScalarProperty Name="PublisherId" ColumnName="PublisherId" />
                <ScalarProperty Name="Publisher" ColumnName="Publisher" />
                <ScalarProperty Name="Address" ColumnName="Address" />
                <ScalarProperty Name="Tel" ColumnName="Tel" />
                <ScalarProperty Name="Fax" ColumnName="Fax" />
                <ScalarProperty Name="Postcode" ColumnName="Postcode" />
                <ScalarProperty Name="http" ColumnName="http" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="user">
            <EntityTypeMapping TypeName="LibraryModel.user">
              <MappingFragment StoreEntitySet="user">
                <ScalarProperty Name="userId" ColumnName="userId" />
                <ScalarProperty Name="username" ColumnName="username" />
                <ScalarProperty Name="password" ColumnName="password" />
                <ScalarProperty Name="flag" ColumnName="flag" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="BaseSet">
            <EntityTypeMapping TypeName="LibraryModel.BaseSet">
              <MappingFragment StoreEntitySet="BaseSet">
                <ScalarProperty Name="Tch_BorrowDays" ColumnName="Tch_BorrowDays" />
                <ScalarProperty Name="flag" ColumnName="flag" />
                <ScalarProperty Name="Rates" ColumnName="Rates" />
                <ScalarProperty Name="Borrow_days" ColumnName="Borrow_days" />
                <ScalarProperty Name="Tch_BorrowNums" ColumnName="Tch_BorrowNums" />
                <ScalarProperty Name="Stu_BorrowNums" ColumnName="Stu_BorrowNums" />
              </MappingFragment>
            </EntityTypeMapping>
          </EntitySetMapping>
          <EntitySetMapping Name="Depart">
            <EntityTypeMapping TypeName="LibraryModel.Depart">
              <MappingFragment StoreEntitySet="Depart">
                <ScalarProperty Name="Dept_Name" ColumnName="Dept_Name" />
                <ScalarProperty Name="Dept_ID" ColumnName="Dept_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="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>