using System;
using CY.Infrastructure.Domain;
using CY.Infrastructure.Common;
namespace CY.Model
{
///
///软件管理
///
[Serializable]
public partial class Soft_Manage : IAggregateRoot
{
public Soft_Manage()
{
}
#region Model
private int? _keyid;
private string _softname;
private int? _softprice;
private string _softcontent;
private DateTime? _lastupdatetime;
private string _operator;
///
/// 编号
///
public int? Keyid
{
get
{
return _keyid;
}
set
{
_keyid = value;
}
}
///
/// 软件名称
///
public string SoftName
{
get
{
return _softname;
}
set
{
_softname = value;
}
}
///
/// 软件价格
///
public int? SoftPrice
{
get
{
return _softprice;
}
set
{
_softprice = value;
}
}
///
/// 软件标识码
///
public string SoftContent
{
get
{
return _softcontent;
}
set
{
_softcontent = value;
}
}
///
/// 最后修改时间
///
public DateTime? LastUpdateTime
{
get
{
return _lastupdatetime;
}
set
{
_lastupdatetime = value;
}
}
///
/// 操作人
///
public string Operator
{
get
{
return _operator;
}
set
{
_operator = value;
}
}
#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.ConvertToInt(value) : Keyid;
theValue = this.Keyid;
}
else if ("SoftName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
{
this.SoftName = isChange ? MyConvert.ConvertToString(value) : SoftName;
theValue = this.SoftName;
}
else if ("SoftPrice".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
{
this.SoftPrice = isChange ? MyConvert.ConvertToInt(value) : SoftPrice;
theValue = this.SoftPrice;
}
else if ("SoftContent".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
{
this.SoftContent = isChange ? MyConvert.ConvertToString(value) : SoftContent;
theValue = this.SoftContent;
}
else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
{
this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime;
theValue = this.LastUpdateTime;
}
else if ("Operator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
{
this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator;
theValue = this.Operator;
}
return theValue;
}
#endregion Visiter
}
}