commententity.cs

来自「ASP.NET 2.0动态网站设计实例源代码,本书介绍了ASP.NET2.0的基」· CS 代码 · 共 124 行

CS
124
字号
///////////////////////////////////////////////////////////
//  CommentEntity.cs
//  Implementation of the Class CommentEntity
//  Generated by Enterprise Architect
//  Created on:      07-五月-2006 14:00:58
///////////////////////////////////////////////////////////




using System;
namespace BookShop.Entity
{
  /// <summary>
  /// 评论实体
  /// </summary>
  public class CommentEntity
  {

    /// <summary>
    /// 评论发布时间
    /// </summary>
    private DateTime _CommentDate;
    /// <summary>
    /// 评论内容
    /// </summary>
    private string _Content = null;
    /// <summary>
    /// 评论的货物的ID
    /// </summary>
    private int _GoodsID = -1;
    /// <summary>
    /// 评论ID
    /// </summary>
    private int _ID = -1;
    /// <summary>
    /// 评论标题
    /// </summary>
    private string _Title = null;
    /// <summary>
    /// 会员ID
    /// </summary>
    private int _MemberID;

    public CommentEntity()
    {

    }


    public DateTime CommentDate
    {
      get
      {
        return _CommentDate;
      }
      set
      {
        _CommentDate = value;
      }
    }

    public int CommentID
    {
      get
      {
        return _ID;
      }
      set
      {
        _ID = value;
      }
    }
    public string Content
    {
      get
      {
        return _Content;
      }
      set
      {
        _Content = value;
      }
    }

    public int GoodsID
    {
      get
      {
        return _GoodsID;
      }
      set
      {
        _GoodsID = value;
      }
    }

    public string Title
    {
      get
      {
        return _Title;
      }
      set
      {
        _Title = value;
      }
    }

    public int MemberID
    {
      get
      {
        return _MemberID;
      }
      set
      {
        _MemberID = value;
      }
    }

  }//end CommentEntity

}//end namespace Entity

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?