using System;
|
using CY.Infrastructure.Domain;
|
using CY.Infrastructure.Common;
|
namespace CY.Model
|
{
|
/// <summary>
|
///软件版本
|
/// </summary>
|
[Serializable]
|
public partial class Soft_Version : IAggregateRoot
|
{
|
public Soft_Version()
|
{
|
}
|
#region Model
|
private int? _keyid;
|
private int? _softtypeid;
|
private string _softname;
|
private string _softversion;
|
private string _softstoreaddress;
|
private string _softurl;
|
private string _softcontent;
|
private DateTime? _softcreattime;
|
private int? _softupcount;
|
private DateTime? _lastupdatetime;
|
private string _operator;
|
|
/// <summary>
|
/// 编号
|
/// </summary>
|
public int? Keyid
|
{
|
get
|
{
|
return _keyid;
|
}
|
set
|
{
|
_keyid = value;
|
}
|
}
|
/// <summary>
|
/// 软件类型
|
/// </summary>
|
public int? SoftTypeId
|
{
|
get
|
{
|
return _softtypeid;
|
}
|
set
|
{
|
_softtypeid = value;
|
}
|
}
|
/// <summary>
|
/// 软件名称
|
/// </summary>
|
public string SoftName
|
{
|
get
|
{
|
return _softname;
|
}
|
set
|
{
|
_softname = value;
|
}
|
}
|
/// <summary>
|
/// 软件版本
|
/// </summary>
|
public string SoftVersion
|
{
|
get
|
{
|
return _softversion;
|
}
|
set
|
{
|
_softversion = value;
|
}
|
}
|
/// <summary>
|
/// 软件更新地址
|
/// </summary>
|
public string SoftStoreAddress
|
{
|
get
|
{
|
return _softstoreaddress;
|
}
|
set
|
{
|
_softstoreaddress = value;
|
}
|
}
|
/// <summary>
|
/// 文件上传保存路径
|
/// </summary>
|
public string SoftUrl
|
{
|
get
|
{
|
return _softurl;
|
}
|
set
|
{
|
_softurl = value;
|
}
|
}
|
/// <summary>
|
/// 更新执行语句
|
/// </summary>
|
public string SoftContent
|
{
|
get
|
{
|
return _softcontent;
|
}
|
set
|
{
|
_softcontent = value;
|
}
|
}
|
/// <summary>
|
/// 创建时间
|
/// </summary>
|
public DateTime? SoftCreatTime
|
{
|
get
|
{
|
return _softcreattime;
|
}
|
set
|
{
|
_softcreattime = value;
|
}
|
}
|
/// <summary>
|
/// 更新数量
|
/// </summary>
|
public int? SoftUpCount
|
{
|
get
|
{
|
return _softupcount;
|
}
|
set
|
{
|
_softupcount = value;
|
}
|
}
|
/// <summary>
|
/// 最后修改时间
|
/// </summary>
|
public DateTime? LastUpdateTime
|
{
|
get
|
{
|
return _lastupdatetime;
|
}
|
set
|
{
|
_lastupdatetime = value;
|
}
|
}
|
/// <summary>
|
/// 操作人
|
/// </summary>
|
public string Operator
|
{
|
get
|
{
|
return _operator;
|
}
|
set
|
{
|
_operator = value;
|
}
|
}
|
#endregion Model
|
|
#region Visiter
|
/// <summary>
|
/// 属性访问器
|
/// </summary>
|
/// <param name="name">属性名</param>
|
/// <param name="index">索引</param>
|
/// <param name="isChange">是否将指定属性设置为传入值</param>
|
/// <param name="value">需要赋予的值</param>
|
/// <returns>与名称对应的属性值</returns>
|
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 ("SoftTypeId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
|
{
|
this.SoftTypeId = isChange ? MyConvert.ConvertToInt(value) : SoftTypeId;
|
theValue = this.SoftTypeId;
|
}
|
else if ("SoftName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
|
{
|
this.SoftName = isChange ? MyConvert.ConvertToString(value) : SoftName;
|
theValue = this.SoftName;
|
}
|
else if ("SoftVersion".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
|
{
|
this.SoftVersion = isChange ? MyConvert.ConvertToString(value) : SoftVersion;
|
theValue = this.SoftVersion;
|
}
|
else if ("SoftStoreAddress".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.SoftStoreAddress = isChange ? MyConvert.ConvertToString(value) : SoftStoreAddress;
|
theValue = this.SoftStoreAddress;
|
}
|
else if ("SoftUrl".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
|
{
|
this.SoftUrl = isChange ? MyConvert.ConvertToString(value) : SoftUrl;
|
theValue = this.SoftUrl;
|
}
|
else if ("SoftContent".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
|
{
|
this.SoftContent = isChange ? MyConvert.ConvertToString(value) : SoftContent;
|
theValue = this.SoftContent;
|
}
|
else if ("SoftCreatTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
|
{
|
this.SoftCreatTime = isChange ? MyConvert.ConvertToDateTime(value) : SoftCreatTime;
|
theValue = this.SoftCreatTime;
|
}
|
else if ("SoftUpCount".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
|
{
|
this.SoftUpCount = isChange ? MyConvert.ConvertToInt32(value) : SoftUpCount;
|
theValue = this.SoftUpCount;
|
}
|
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;
|
}
|
return theValue;
|
}
|
#endregion Visiter
|
}
|
}
|