/** * EC_FastLoginInfo.cs * * 功 能: N/A * 类 名: EC_FastLoginInfo * * Ver 变更日期 负责人 变更内容 * ─────────────────────────────────── * V0.01 2013-4-2 14:27:21 N/A 初版 * * * * * * */ using System; using CY.Infrastructure.Domain; using CY.Infrastructure.Common; namespace CY.Model { /// /// 快捷登陆 /// [Serializable] public partial class EC_FastLoginInfo : IAggregateRoot { public EC_FastLoginInfo() { } #region Model private int? _keyid; private Guid _memberid; private string _fastloginnum; private string _logintype; private DateTime? _logintime; /// /// 信息编号 /// public int? Keyid { set { _keyid = value; } get { return _keyid; } } /// /// 会员编号 /// public Guid MemberId { set { _memberid = value; } get { return _memberid; } } /// /// 快捷登陆编号 /// public string FastLoginNum { set { _fastloginnum = value; } get { return _fastloginnum; } } /// /// 登陆类型 /// public string LoginType { set { _logintype = value; } get { return _logintype; } } /// /// 登陆时间 /// public DateTime? LoginTime { set { _logintime = value; } get { return _logintime; } } #endregion Model #region Visiter /// /// 属性访问器 /// /// 属性名 /// 索引 /// 是否将指定属性设置为传入值 /// 需要赋予的值 /// 与名称对应的属性值 public object Visiter(string name, int? index = -1, bool isChange = false, object value = null) { object theValue = null; if ("Keyid".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 1) { this.Keyid = isChange ? MyConvert.ConvertToInt32(value) : Keyid; theValue = this.Keyid; } else if ("MemberId".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 2) { this.MemberId = isChange ? MyConvert.ConvertToGuid(value) : this.MemberId; theValue = this.MemberId; } else if ("FastLoginNum".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 3) { this.FastLoginNum = isChange ? MyConvert.ConvertToString( value) : FastLoginNum; theValue = this.FastLoginNum; } else if ("Logintype".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 4) { this.LoginType = isChange ? MyConvert.ConvertToString( value) : LoginType; theValue = this.LoginType; } else if ("Logintime".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 5) { this.LoginTime = isChange ? MyConvert.ConvertToDateTime(value) : LoginTime; theValue = this.LoginTime; } return theValue; } #endregion } }