第二步 Model 放实体层(实体类) 例如:Member

2008-01-16 16:30

using System;
using System.Collections.Generic;
using System.Text;

namespace Buygo.Model
{
    public class Member
    {
        private int _intMemberNumber        = 0;
        private string _strMemberID         = null;
        private string _strMemberName       = null;
        private string _strNickName         = null;
        private string _strSex              = null;
        private DateTime _dtBirthday;
        private string _strMobilePhone      = null;
        private string _strTelephone        = null;
        private string _strQQ               = null;
        private string _strMSN              = null;
        private string _strEMail            = null;
        private string _strPaopao           = null;
        private string _strOther            = null;
        private string _strICQ              = null;
        private City _nativePlace           = new City();
        private int _intMsgID               = -1;
        public Member()
        { }

        ///


        /// 会员信息
        ///

        /// 会员号
        /// 会员注册名
        /// 性别
        /// 出生日期
        /// 籍贯
        /// 手机
        /// 电话
        /// QQ
        /// MSN
        /// EMail
        /// 泡泡
        /// 其它
        /// ICQ
        public Member(int memberNumber, string memberName, string sex, DateTime birthday, City nativePlace, string mobilePhone, string telephone, string qq, string msn, string email, string paopao, string other, string icq)
        {
            this._intMemberNumber           = memberNumber;
            this._strMemberName             = memberName;
            this._strSex                    = sex;
            this._dtBirthday               = birthday;
            this._nativePlace               = nativePlace;
            this._strMobilePhone            = mobilePhone;
            this._strTelephone              = telephone;
            this._strQQ                     = qq;
            this._strMSN                    = msn;
            this._strEMail                  = email;
            this._strPaopao                 = paopao;
            this._strOther                  = other;
            this._strICQ                    = icq;
        }

        ///


        /// 会员信息
        ///

        /// 会员编号
        /// 会员注册名
        /// 性别
        /// 出生日期
        /// 籍贯
        public Member(string memberID, string memberName, string sex, DateTime birthday, City nativePlace)
        {
            this._strMemberID           = memberID;
            this._strMemberName         = memberName;
            this._strSex                = sex;
            this._dtBirthday           = birthday;
            this._nativePlace           = nativePlace;
        }
        ///
        /// 会员信息
        ///

        /// 会员编号
        /// 会员注册名
        /// 会员号
        /// 会员昵称
        /// 性别
        /// 出生日期
        /// 籍贯
        public Member(string memberID, string memberName, int memberNumber, string nickName, string sex, City nativePlace)
        {
            this._strMemberID = memberID;
            this._strMemberName = memberName;
            this._intMemberNumber = memberNumber;
            this._strNickName = nickName;
            this._strSex = sex;
            this._nativePlace = nativePlace;
        }
        ///
        /// 会员信息
        ///

        /// 会员不存在是的提示消息编号
        public Member(int msgID)
        {
            this._intMsgID = msgID;
        }
        ///
        /// 会员信息
        ///

        /// 会员注册名
        /// 性别
        /// 出生日期
        /// 籍贯
        public Member(string membername, string sex, DateTime birthday, City nativeplace)
        {
            this._strMemberName         = membername;
            this._strSex                = sex;
            this._dtBirthday           = birthday;
            this._nativePlace           = nativeplace;
        }
        ///
        /// 获取会员编号
        ///

        public string MemberID
        {
            get { return this._strMemberID; }
        }
        ///
        /// 获取会员号
        ///

        public int MemberNum
        {
            get { return this._intMemberNumber; }
        }
        ///
        /// 获取会员昵称
        ///

        public string NickName
        {
            get { return this._strNickName; }
        }
        ///
        /// 会员注册名
        ///

        public string MemberName
        {
            get
            {
                return this._strMemberName;
            }
        }
        ///
        /// 性别
        ///

        public string Sex
        {
            get
            {
                return this._strSex;
            }
        }
        ///
        /// 出生日期
        ///

        public DateTime Birthday
        {
            get
            {
                return this._dtBirthday;
            }
        }
        ///
        /// 获取籍贯
        ///

        public City NativePlace
        {
            get
            {
                return this._nativePlace;
            }
        }
        ///
        /// 获取手机
        ///

        public string MobilePhone
        {
            get
            {
                return this._strMobilePhone;
            }
        }
        ///
        /// 获取电话号码
        ///

        public string Telephone
        {
            get
            {
                return this._strTelephone;
            }
        }
        ///
        /// 获取QQ
        ///

        public string QQ
        {
            get
            {
                return this._strQQ;
            }
        }
        ///
        /// 获取MSN
        ///

        public string MSN
        {
            get
            {
                return this._strMSN;
            }
        }
        ///
        /// 获取EMail
        ///

        public string EMail
        {
            get
            {
                return this._strEMail;
            }
        }
        ///
        /// 获取其它联系方式
        ///

        public string Other
        {
            get
            {
                return this._strOther;
            }
        }
        ///
        /// 获取ICQ
        ///

        public string ICQ
        {
            get
            {
                return this._strICQ;
            }
        }
        ///
        /// 获取泡泡
        ///

        public string Paopao
        {
            get
            {
                return this._strPaopao;
            }
        }
        ///
        /// 获取消息
        ///

        public int MsgID
        {
            get { return this._intMsgID; }
        }
    }
}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值