/** * EC_AskPriceNote.cs * * 功 能: N/A * 类 名: EC_AskPriceNote * * Ver 变更日期 负责人 变更内容 * ─────────────────────────────────── * V0.01 2013-4-2 14:27:19 N/A 初版 * * * * * * */ using System; using CY.Infrastructure.Domain; using CY.Infrastructure.Common; namespace CY.Model { /// /// 询价时的选择项纪录主表 /// [Serializable] public partial class EC_AskPriceNote : IAggregateRoot { public EC_AskPriceNote() { } #region Model private int? _keyid; private int? _asppriceprojectid; private DateTime? _createtime; /// /// 记录编号 /// public int? Keyid { set { _keyid = value; } get { return _keyid; } } /// /// 询价记录编号 /// public int? AspPriceProjectId { set { _asppriceprojectid = value; } get { return _asppriceprojectid; } } /// /// 产生时间 /// public DateTime? CreateTime { set { _createtime = value; } get { return _createtime; } } #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 ("AspPriceProjectId".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 2) { this.AspPriceProjectId = isChange ? MyConvert.ConvertToInt32(value) : AspPriceProjectId; theValue = this.AspPriceProjectId; } else if ("CreateTime".Equals(name,StringComparison.CurrentCultureIgnoreCase) || index == 3) { this.CreateTime = isChange ? MyConvert.ConvertToDateTime(value) : CreateTime; theValue = this.CreateTime; } return theValue; } #endregion } }