<?xml version="1.0" encoding="utf-8"?>
<Schema Namespace="MyMvcModel.Store" Alias="Self" Provider="System.Data.SqlClient" ProviderManifestToken="2008" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns="http://schemas.microsoft.com/ado/2009/02/edm/ssdl">
  <EntityContainer Name="MyMvcModelStoreContainer">
    <EntitySet Name="Columns" EntityType="MyMvcModel.Store.Columns" store:Type="Tables" Schema="dbo" />
    <EntitySet Name="Comment" EntityType="MyMvcModel.Store.Comment" store:Type="Tables" Schema="dbo" />
    <EntitySet Name="GuestBook" EntityType="MyMvcModel.Store.GuestBook" store:Type="Tables" Schema="dbo" />
    <EntitySet Name="Member" EntityType="MyMvcModel.Store.Member" store:Type="Tables" Schema="dbo" />
    <AssociationSet Name="FK_Comment_GuestBook" Association="MyMvcModel.Store.FK_Comment_GuestBook">
      <End Role="GuestBook" EntitySet="GuestBook" />
      <End Role="Comment" EntitySet="Comment" />
    </AssociationSet>
    <AssociationSet Name="FK_Comment_Member" Association="MyMvcModel.Store.FK_Comment_Member">
      <End Role="Member" EntitySet="Member" />
      <End Role="Comment" EntitySet="Comment" />
    </AssociationSet>
    <AssociationSet Name="FK_GuestBook_Columns" Association="MyMvcModel.Store.FK_GuestBook_Columns">
      <End Role="Columns" EntitySet="Columns" />
      <End Role="GuestBook" EntitySet="GuestBook" />
    </AssociationSet>
    <AssociationSet Name="FK_GuestBook_Member" Association="MyMvcModel.Store.FK_GuestBook_Member">
      <End Role="Member" EntitySet="Member" />
      <End Role="GuestBook" EntitySet="GuestBook" />
    </AssociationSet>
  </EntityContainer>
  <EntityType Name="Columns">
    <Key>
      <PropertyRef Name="Id" />
    </Key>
    <Property Name="Id" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
    <Property Name="Column_Name" Type="nvarchar" MaxLength="50" />
    <Property Name="Info" Type="nvarchar" MaxLength="50" />
  </EntityType>
  <EntityType Name="Comment">
    <Key>
      <PropertyRef Name="Id" />
    </Key>
    <Property Name="Id" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
    <Property Name="GuestBookId" Type="int" />
    <Property Name="MemberId" Type="int" />
    <Property Name="Comments" Type="nvarchar" MaxLength="100" />
    <Property Name="C_Time" Type="datetime" />
  </EntityType>
  <EntityType Name="GuestBook">
    <Key>
      <PropertyRef Name="Id" />
    </Key>
    <Property Name="Id" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
    <Property Name="MemberId" Type="int" />
    <Property Name="G_Content" Type="nvarchar" MaxLength="750" />
    <Property Name="G_Time" Type="datetime" />
    <Property Name="G_Title" Type="nvarchar" MaxLength="50" />
    <Property Name="G_HF_Content" Type="nvarchar" MaxLength="750" />
    <Property Name="G_Recycle" Type="int" />
    <Property Name="Column_Id" Type="int" />
  </EntityType>
  <EntityType Name="Member">
    <Key>
      <PropertyRef Name="Id" />
    </Key>
    <Property Name="Id" Type="int" Nullable="false" StoreGeneratedPattern="Identity" />
    <Property Name="UserName" Type="nvarchar" MaxLength="50" />
    <Property Name="PassWord" Type="nvarchar" MaxLength="50" />
    <Property Name="Power" Type="nvarchar" MaxLength="10" />
    <Property Name="Sex" Type="nvarchar" MaxLength="50" />
    <Property Name="Email" Type="nvarchar" MaxLength="50" />
    <Property Name="Head" Type="nvarchar" MaxLength="10" />
    <Property Name="SetAtt" Type="nvarchar" MaxLength="50" />
  </EntityType>
  <Association Name="FK_Comment_GuestBook">
    <End Role="GuestBook" Type="MyMvcModel.Store.GuestBook" Multiplicity="0..1" />
    <End Role="Comment" Type="MyMvcModel.Store.Comment" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="GuestBook">
        <PropertyRef Name="Id" />
      </Principal>
      <Dependent Role="Comment">
        <PropertyRef Name="GuestBookId" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_Comment_Member">
    <End Role="Member" Type="MyMvcModel.Store.Member" Multiplicity="0..1" />
    <End Role="Comment" Type="MyMvcModel.Store.Comment" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Member">
        <PropertyRef Name="Id" />
      </Principal>
      <Dependent Role="Comment">
        <PropertyRef Name="MemberId" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_GuestBook_Columns">
    <End Role="Columns" Type="MyMvcModel.Store.Columns" Multiplicity="0..1" />
    <End Role="GuestBook" Type="MyMvcModel.Store.GuestBook" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Columns">
        <PropertyRef Name="Id" />
      </Principal>
      <Dependent Role="GuestBook">
        <PropertyRef Name="Column_Id" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
  <Association Name="FK_GuestBook_Member">
    <End Role="Member" Type="MyMvcModel.Store.Member" Multiplicity="0..1" />
    <End Role="GuestBook" Type="MyMvcModel.Store.GuestBook" Multiplicity="*" />
    <ReferentialConstraint>
      <Principal Role="Member">
        <PropertyRef Name="Id" />
      </Principal>
      <Dependent Role="GuestBook">
        <PropertyRef Name="MemberId" />
      </Dependent>
    </ReferentialConstraint>
  </Association>
</Schema>