class1.cs

来自「ajax 三层软件开发实例,三层软件开发实例」· CS 代码 · 共 71 行

CS
71
字号
using System;
using System.Collections.Generic;
using System.Text;

namespace Model
{
    public class guestbook //留言本实体类
    {
        private string _id, _name, _ip, _content, _email, _pic, _recontent;
        DateTime _time;

        #region 设置属性
        //id
        public string Id
        {
            get { return _id; }
            set { _id = value; }
        }
        //网名
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        //时间
        public DateTime  Time
        {
            get { return _time; }
            set { _time = value; }
        }

        //IP地址
        public string Ip
        {
            get { return _ip; }
            set { _ip = value; }
        }

        //留言内容
        public string Content
        {
            get { return _content; }
            set { _content = value; }
        }

        //电子信箱
        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }

        //头像
        public string Pic
        {
            get { return _pic; }
            set { _pic = value; }
        }

        //回复内容
        public string Recontent
        {
            get { return _recontent; }
            set { _recontent = value; }
        }
        #endregion

    }
}

⌨️ 快捷键说明

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