using System; using CY.Infrastructure.Domain; using CY.Infrastructure.Common; namespace CY.Model { /// /// 会员代理表 /// [Serializable] public partial class EC_ProxyMember : IAggregateRoot { public EC_ProxyMember() { } #region Model private int? _keyid; private Guid _memberid; private int? _proxystate; private string _proxyprovince; private string _proxycity; private string _proxycountry; private string _proxylevel; private string _proxytype; private DateTime? _proxystarttime; private DateTime? _lastupdatetime; private string _operator; private string _remark; /// /// 主键 /// public int? Keyid { set { _keyid = value; } get { return _keyid; } } /// /// 会员编号 /// public Guid Memberid { set { _memberid = value; } get { return _memberid; } } /// /// 代理状态1正常2停用 /// public int? ProxyState { set { _proxystate = value; } get { return _proxystate; } } /// /// 省 /// public string ProxyProvince { set { _proxyprovince = value; } get { return _proxyprovince; } } /// /// 市 /// public string ProxyCity { set { _proxycity = value; } get { return _proxycity; } } /// /// 区 /// public string ProxyCountry { set { _proxycountry = value; } get { return _proxycountry; } } /// /// 代理等级 /// public string ProxyLevel { set { _proxylevel = value; } get { return _proxylevel; } } /// /// 代理类型 /// public string ProxyType { set { _proxytype = value; } get { return _proxytype; } } /// /// 代理开始时间 /// public DateTime? ProxyStartTime { set { _proxystarttime = value; } get { return _proxystarttime; } } /// /// 最后修改时间 /// public DateTime? LastUpdateTime { set { _lastupdatetime = value; } get { return _lastupdatetime; } } /// /// 操作人 /// public string Operator { set { _operator = value; } get { return _operator; } } /// /// 备注 /// public string Remark { set { _remark = value; } get { return _remark; } } #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) : Memberid; theValue = this.Memberid; } else if ("ProxyState".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3) { this.ProxyState = isChange ? MyConvert.ConvertToInt32(value) : ProxyState; theValue = this.ProxyState; } else if ("ProxyProvince".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4) { this.ProxyProvince = isChange ? MyConvert.ConvertToString(value) : ProxyProvince; theValue = this.ProxyProvince; } else if ("ProxyCity".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5) { this.ProxyCity = isChange ? MyConvert.ConvertToString(value) : ProxyCity; theValue = this.ProxyCity; } else if ("ProxyCountry".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6) { this.ProxyCountry = isChange ? MyConvert.ConvertToString(value) : ProxyCountry; theValue = this.ProxyCountry; } else if ("ProxyLevel".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7) { this.ProxyLevel = isChange ? MyConvert.ConvertToString(value) : ProxyLevel; theValue = this.ProxyLevel; } else if ("ProxyType".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8) { this.ProxyType = isChange ? MyConvert.ConvertToString(value) : ProxyType; theValue = this.ProxyType; } else if ("ProxyStartTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9) { this.ProxyStartTime = isChange ? MyConvert.ConvertToDateTime(value) : ProxyStartTime; theValue = this.ProxyStartTime; } else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10) { this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime; theValue = this.LastUpdateTime; } else if ("Operator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11) { this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator; theValue = this.Operator; } else if ("Remark".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12) { this.Remark = isChange ? MyConvert.ConvertToString(value) : Remark; theValue = this.Remark; } return theValue; } #endregion } }