📄 itemmsg.cs
字号:
using System;
using System.Collections.Generic;
using System.Text;
namespace Model
{
/// <summary>
/// 菜肴留言对象
/// </summary>
[Serializable]
public class ItemMsg
{
#region 私有变量
private long systemid;
private long itemid;
private string username;
private string comment;
private string userip;
private DateTime date;
#endregion
#region 构造函数
/// <summary>
/// 菜肴评论构造函数
/// </summary>
/// <param name="_itemid">评论编号</param>
/// <param name="_username">评论者用户名</param>
/// <param name="_comment">评论文字</param>
/// <param name="_userip">评论者IP</param>
public ItemMsg(long _itemid, string _username, string _comment, string _userip)
{
this.itemid = _itemid;
this.username = _username;
this.comment = _comment;
this.userip = _userip;
}
/// <summary>
/// 菜肴评论构造函数
/// </summary>
/// <param name="_itemid">所评论的菜肴ID</param>
/// <param name="_username">评论者用户名</param>
/// <param name="_comment">评论文字</param>
/// <param name="_userip">评论者IP</param>
/// <param name="_date">评论日期</param>
public ItemMsg(long _itemid, string _username, string _comment, string _userip,DateTime _date)
{
this.itemid = _itemid;
this.username = _username;
this.comment = _comment;
this.userip = _userip;
this.date = _date;
}
#endregion
#region 属性
/// <summary>
/// 评论系统编号
/// </summary>
public long Systemid
{
get { return systemid; }
set { systemid = value; }
}
/// <summary>
/// 所评论的菜肴ID
/// </summary>
public long Itemid
{
get { return itemid; }
set { itemid = value; }
}
/// <summary>
/// 评论者登录名
/// </summary>
public string Username
{
get { return username; }
set { username = value; }
}
/// <summary>
/// 评论正文
/// </summary>
public string Comment
{
get { return comment; }
set { comment = value; }
}
/// <summary>
/// 评论者IP
/// </summary>
public string Userip
{
get { return userip; }
set { userip = value; }
}
/// <summary>
/// 评论日期
/// </summary>
public DateTime Date
{
get { return date; }
set { date = value; }
}
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -