using System;
|
using CY.Infrastructure.Domain;
|
using CY.Infrastructure.Common;
|
|
namespace CY.Model
|
{
|
/// <summary>
|
/// ÁªÃËÐÅÏ¢±í
|
/// </summary>
|
[Serializable]
|
public partial class Info_Alliance : IAggregateRoot
|
{
|
public Info_Alliance()
|
{
|
}
|
|
#region Model
|
private int? _keyid;
|
private string _title;
|
private string _infocontent;
|
private int? _ordernum;
|
private DateTime? _creattime;
|
private DateTime? _lastupdatetime;
|
private string _operator;
|
private string _type;
|
/// <summary>
|
/// 񅧏
|
/// </summary>
|
public int? Keyid
|
{
|
set
|
{
|
_keyid = value;
|
}
|
get
|
{
|
return _keyid;
|
}
|
}
|
/// <summary>
|
/// ±êÌâ
|
/// </summary>
|
public string Title
|
{
|
set
|
{
|
_title = value;
|
}
|
get
|
{
|
return _title;
|
}
|
}
|
/// <summary>
|
/// ÄÚÈÝ
|
/// </summary>
|
public string InfoContent
|
{
|
set
|
{
|
_infocontent = value;
|
}
|
get
|
{
|
return _infocontent;
|
}
|
}
|
/// <summary>
|
/// ÅÅÐò
|
/// </summary>
|
public int? OrderNum
|
{
|
set
|
{
|
_ordernum = value;
|
}
|
get
|
{
|
return _ordernum;
|
}
|
}
|
/// <summary>
|
/// ·¢²¼Ê±¼ä
|
/// </summary>
|
public DateTime? CreatTime
|
{
|
set
|
{
|
_creattime = value;
|
}
|
get
|
{
|
return _creattime;
|
}
|
}
|
/// <summary>
|
/// ×îºóÐÞ¸Äʱ¼ä
|
/// </summary>
|
public DateTime? LastUpdateTime
|
{
|
set
|
{
|
_lastupdatetime = value;
|
}
|
get
|
{
|
return _lastupdatetime;
|
}
|
}
|
/// <summary>
|
/// ²Ù×÷ÈË
|
/// </summary>
|
public string Operator
|
{
|
set
|
{
|
_operator = value;
|
}
|
get
|
{
|
return _operator;
|
}
|
}
|
/// <summary>
|
/// ÀàÐÍ
|
/// </summary>
|
public string Type
|
{
|
set
|
{
|
_type = value;
|
}
|
get
|
{
|
return _type;
|
}
|
}
|
#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.ConvertToInt32(value) : Keyid;
|
theValue = this.Keyid;
|
}
|
else if ("Title".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
|
{
|
this.Title = isChange ? MyConvert.ConvertToString(value) : Title;
|
theValue = this.Title;
|
}
|
else if ("InfoContent".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
|
{
|
this.InfoContent = isChange ? MyConvert.ConvertToString(value) : InfoContent;
|
theValue = this.InfoContent;
|
}
|
else if ("OrderNum".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
|
{
|
this.OrderNum = isChange ? MyConvert.ConvertToInt32(value) : OrderNum;
|
theValue = this.OrderNum;
|
}
|
else if ("CreatTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.CreatTime = isChange ? MyConvert.ConvertToDateTime(value) : CreatTime;
|
theValue = this.CreatTime;
|
}
|
else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
|
{
|
this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime;
|
theValue = this.LastUpdateTime;
|
}
|
else if ("Operator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
|
{
|
this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator;
|
theValue = this.Operator;
|
}
|
else if ("Type".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
|
{
|
this.Type = isChange ? MyConvert.ConvertToString(value) : Type;
|
theValue = this.Type;
|
}
|
|
|
return theValue;
|
}
|
#endregion
|
}
|
}
|