<?xml version="1.0" encoding="utf-8"?>
<Schema Namespace="MyMvcModel" Alias="Self" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns="http://schemas.microsoft.com/ado/2008/09/edm">
  <EntityContainer Name="MyMvcEntities" annotation:LazyLoadingEnabled="true">
    <EntitySet Name="GuestBook" EntityType="MyMvcModel.GuestBook" />
    <EntitySet Name="Comment" EntityType="MyMvcModel.Comment" />
    <AssociationSet Name="FK_Comment_GuestBook" Association="MyMvcModel.FK_Comment_GuestBook">
      <End Role="GuestBook" EntitySet="GuestBook" />
      <End Role="Comment" EntitySet="Comment" />
    </AssociationSet>
    <EntitySet Name="Columns" EntityType="MyMvcModel.Columns" />
    <AssociationSet Name="FK_GuestBook_Columns" Association="MyMvcModel.FK_GuestBook_Columns">
      <End Role="Columns" EntitySet="Columns" />
      <End Role="GuestBook" EntitySet="GuestBook" />
    </AssociationSet>
    <EntitySet Name="Member" EntityType="MyMvcModel.Member" />
    <AssociationSet Name="FK_Comment_Member" Association="MyMvcModel.FK_Comment_Member">
      <End Role="Member" EntitySet="Member" />
      <End Role="Comment" EntitySet="Comment" />
    </AssociationSet>
    <AssociationSet Name="FK_GuestBook_Member" Association="MyMvcModel.FK_GuestBook_Member">
      <End Role="Member" EntitySet="Member" />
      <End Role="GuestBook" EntitySet="GuestBook" />
    </AssociationSet>
  </EntityContainer>
  <EntityType Name="GuestBook">
    <Key>
      <PropertyRef Name="Id" />
    </Key>
    <Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
    <Property Name="MemberId" Type="Int32" />
    <Property Name="G_Content" Type="String" MaxLength="750" Unicode="true" FixedLength="false" />
    <Property Name="G_Time" Type="DateTime" />
    <Property Name="G_Title" Type="String" MaxLength="50" Unicode="true" FixedLength="false" />
    <Property Name="G_HF_Content" Type="String" MaxLength="750" Unicode="true" FixedLength="false" />
    <NavigationProperty Name="Comment" Relationship="MyMvcModel.FK_Comment_GuestBook" FromRole="GuestBook" ToRole="Comment" />
    <Property Type="Int32" Name="G_Recycle" />
    <Property Type="Int32" Name="Column_Id" />
    <NavigationProperty Name="Columns" Relationship="MyMvcModel.FK_GuestBook_Columns" FromRole="GuestBook" ToRole="Columns" />
    <NavigationProperty Name="Member" Relationship="MyMvcModel.FK_GuestBook_Member" FromRole="GuestBook" ToRole="Member" />
  </EntityType>
  <EntityType Name="Comment">
    <Key>
      <PropertyRef Name="Id" />
    </Key>
    <Property Type="Int32" Name="Id" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
    <Property Type="Int32" Name="GuestBookId" />
    <Property Type="Int32" Name="MemberId" />
    <Property Type="String" Name="Comments" MaxLength="100" FixedLength="false" Unicode="true" />
    <NavigationProperty Name="GuestBook" Relationship="MyMvcModel.FK_Comment_GuestBook" FromRole="Comment" ToRole="GuestBook" />
    <Property Type="DateTime" Name="C_Time" />
    <NavigationProperty Name="Member" Relationship="MyMvcModel.FK_Comment_Member" FromRole="Comment" ToRole="Member" />
  </EntityType>
  <Association Name="FK_Comment_GuestBook">
    <End Type="MyMvcModel.GuestBook" Role="GuestBook" Multiplicity="0..1" />
    <End Type="MyMvcModel.Comment" Role="Comment" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="GuestBook">
        <PropertyRef Name="Id" />
      </Principal>
      <Dependent Role="Comment">
        <PropertyRef Name="GuestBookId" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <EntityType Name="Columns">
    <Key>
      <PropertyRef Name="Id" />
    </Key>
    <Property Type="Int32" Name="Id" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
    <Property Type="String" Name="Column_Name" MaxLength="50" FixedLength="false" Unicode="true" />
    <NavigationProperty Name="GuestBook" Relationship="MyMvcModel.FK_GuestBook_Columns" FromRole="Columns" ToRole="GuestBook" />
    <Property Type="String" Name="Info" MaxLength="50" FixedLength="false" Unicode="true" />
  </EntityType>
  <Association Name="FK_GuestBook_Columns">
    <End Type="MyMvcModel.Columns" Role="Columns" Multiplicity="0..1" />
    <End Type="MyMvcModel.GuestBook" Role="GuestBook" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Columns">
        <PropertyRef Name="Id" />
      </Principal>
      <Dependent Role="GuestBook">
        <PropertyRef Name="Column_Id" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <EntityType Name="Member">
    <Key>
      <PropertyRef Name="Id" />
    </Key>
    <Property Type="Int32" Name="Id" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
    <Property Type="String" Name="UserName" MaxLength="50" FixedLength="false" Unicode="true" />
    <Property Type="String" Name="PassWord" MaxLength="50" FixedLength="false" Unicode="true" />
    <Property Type="String" Name="Power" MaxLength="10" FixedLength="false" Unicode="true" />
    <Property Type="String" Name="Sex" MaxLength="50" FixedLength="false" Unicode="true" />
    <Property Type="String" Name="Email" MaxLength="50" FixedLength="false" Unicode="true" />
    <Property Type="String" Name="Head" MaxLength="10" FixedLength="false" Unicode="true" />
    <Property Type="String" Name="SetAtt" MaxLength="50" FixedLength="false" Unicode="true" />
    <NavigationProperty Name="Comment" Relationship="MyMvcModel.FK_Comment_Member" FromRole="Member" ToRole="Comment" />
    <NavigationProperty Name="GuestBook" Relationship="MyMvcModel.FK_GuestBook_Member" FromRole="Member" ToRole="GuestBook" />
  </EntityType>
  <Association Name="FK_Comment_Member">
    <End Type="MyMvcModel.Member" Role="Member" Multiplicity="0..1" />
    <End Type="MyMvcModel.Comment" Role="Comment" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Member">
        <PropertyRef Name="Id" />
      </Principal>
      <Dependent Role="Comment">
        <PropertyRef Name="MemberId" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_GuestBook_Member">
    <End Type="MyMvcModel.Member" Role="Member" Multiplicity="0..1" />
    <End Type="MyMvcModel.GuestBook" Role="GuestBook" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Member">
        <PropertyRef Name="Id" />
      </Principal>
      <Dependent Role="GuestBook">
        <PropertyRef Name="MemberId" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
</Schema>