using System;
|
using CY.Infrastructure.Domain;
|
using CY.Infrastructure.Common;
|
|
namespace CY.Model
|
{
|
/// <summary>
|
/// ×ÊѶÄÚÈÝ
|
/// </summary>
|
[Serializable]
|
public partial class Info_Content : IAggregateRoot
|
{
|
public Info_Content()
|
{}
|
#region Model
|
private int? _keyid;
|
private Guid _memberid;
|
private string _title;
|
private bool _title_bold;
|
private string _title_color;
|
private int? _sortid;
|
private string _keyword;
|
private string _metedesc;
|
private string _fromsource;
|
private string _author;
|
private string _weblink;
|
private bool _isrecommendation;
|
private bool _istop;
|
private string _infocontent;
|
private int? _star;
|
private int? _hits;
|
private int? _ordernum;
|
private DateTime? _creattime;
|
private DateTime? _uptime;
|
private int? _goodnum;
|
private int? _mediumnum;
|
private int? _badnum;
|
private int? _typeid;
|
/// <summary>
|
/// Ö÷¼üID
|
/// </summary>
|
public int? Keyid
|
{
|
set{ _keyid=value;}
|
get{return _keyid;}
|
}
|
/// <summary>
|
/// ËùÊôÉ̼ÒID
|
/// </summary>
|
public Guid MemberId
|
{
|
set{ _memberid=value;}
|
get{return _memberid;}
|
}
|
/// <summary>
|
/// ±êÌâ
|
/// </summary>
|
public string Title
|
{
|
set{ _title=value;}
|
get{return _title;}
|
}
|
/// <summary>
|
/// ±êÌâÊÇ·ñΪ´ÖÌå
|
/// </summary>
|
public bool Title_Bold
|
{
|
set{ _title_bold=value;}
|
get{return _title_bold;}
|
}
|
/// <summary>
|
/// ±êÌâÑÕÉ«
|
/// </summary>
|
public string Title_Color
|
{
|
set{ _title_color=value;}
|
get{return _title_color;}
|
}
|
/// <summary>
|
/// ·ÖÀàID
|
/// </summary>
|
public int? SortID
|
{
|
set{ _sortid=value;}
|
get{return _sortid;}
|
}
|
/// <summary>
|
/// ¹Ø¼ü´Ê
|
/// </summary>
|
public string Keyword
|
{
|
set{ _keyword=value;}
|
get{return _keyword;}
|
}
|
/// <summary>
|
/// ÃèÊö
|
/// </summary>
|
public string MeteDesc
|
{
|
set{ _metedesc=value;}
|
get{return _metedesc;}
|
}
|
/// <summary>
|
/// À´Ô´
|
/// </summary>
|
public string FromSource
|
{
|
set{ _fromsource=value;}
|
get{return _fromsource;}
|
}
|
/// <summary>
|
/// ×÷Õß
|
/// </summary>
|
public string Author
|
{
|
set{ _author=value;}
|
get{return _author;}
|
}
|
/// <summary>
|
/// ÍⲿÁ¬½Ó
|
/// </summary>
|
public string WebLink
|
{
|
set{ _weblink=value;}
|
get{return _weblink;}
|
}
|
/// <summary>
|
/// ÊÇ·ñÍÆ¼ö
|
/// </summary>
|
public bool IsRecommendation
|
{
|
set{ _isrecommendation=value;}
|
get{return _isrecommendation;}
|
}
|
/// <summary>
|
/// ÊÇ·ñÖö¥
|
/// </summary>
|
public bool IsTop
|
{
|
set{ _istop=value;}
|
get{return _istop;}
|
}
|
/// <summary>
|
/// ÄÚÈÝ
|
/// </summary>
|
public string InfoContent
|
{
|
set{ _infocontent=value;}
|
get{return _infocontent;}
|
}
|
/// <summary>
|
/// ÐǼ¶
|
/// </summary>
|
public int? Star
|
{
|
set{ _star=value;}
|
get{return _star;}
|
}
|
/// <summary>
|
/// µã»÷Êý
|
/// </summary>
|
public int? Hits
|
{
|
set{ _hits=value;}
|
get{return _hits;}
|
}
|
/// <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? UpTime
|
{
|
set{ _uptime=value;}
|
get{return _uptime;}
|
}
|
/// <summary>
|
/// ºÃÆÀ
|
/// </summary>
|
public int? GoodNum
|
{
|
set{ _goodnum=value;}
|
get{return _goodnum;}
|
}
|
/// <summary>
|
/// ÖÐÆÀ
|
/// </summary>
|
public int? MediumNum
|
{
|
set{ _mediumnum=value;}
|
get{return _mediumnum;}
|
}
|
/// <summary>
|
/// ²îÆÀ
|
/// </summary>
|
public int? BadNum
|
{
|
set{ _badnum=value;}
|
get{return _badnum;}
|
}
|
/// <summary>
|
/// ÐÅÏ¢ÀàÐͱàºÅ
|
/// </summary>
|
public int? TypeId
|
{
|
set
|
{
|
_typeid = value;
|
}
|
get
|
{
|
return _typeid;
|
}
|
}
|
|
/// <summary>
|
/// ·ÖÀàÃû³Æ
|
/// </summary>
|
public string TypeName
|
{
|
get;
|
set;
|
}
|
|
#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 ("MemberId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
|
{
|
this.MemberId = isChange ? MyConvert.ConvertToGuid(value) : MemberId;
|
theValue = this.MemberId;
|
}
|
else if ("Title".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
|
{
|
this.Title = isChange ? MyConvert.ConvertToString(value) : Title;
|
theValue = this.Title;
|
}
|
else if ("Title_Bold".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
|
{
|
this.Title_Bold = isChange ? MyConvert.ConvertToBoolean(value) : Title_Bold;
|
theValue = this.Title_Bold;
|
}
|
else if ("Title_Color".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.Title_Color = isChange ? MyConvert.ConvertToString(value) : Title_Color;
|
theValue = this.Title_Color;
|
}
|
else if ("SortID".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
|
{
|
this.SortID = isChange ? MyConvert.ConvertToInt32(value) : SortID;
|
theValue = this.SortID;
|
}
|
else if ("Keyword".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
|
{
|
this.Keyword = isChange ? MyConvert.ConvertToString(value) : Keyword;
|
theValue = this.Keyword;
|
}
|
else if ("MeteDesc".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
|
{
|
this.MeteDesc = isChange ? MyConvert.ConvertToString(value) : MeteDesc;
|
theValue = this.MeteDesc;
|
}
|
else if ("FromSource".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
|
{
|
this.FromSource = isChange ? MyConvert.ConvertToString(value) : FromSource;
|
theValue = this.FromSource;
|
}
|
else if ("Author".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
|
{
|
this.Author = isChange ? MyConvert.ConvertToString(value) : Author;
|
theValue = this.Author;
|
}
|
else if ("WebLink".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
|
{
|
this.WebLink = isChange ? MyConvert.ConvertToString(value) : WebLink;
|
theValue = this.WebLink;
|
}
|
else if ("IsRecommendation".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12)
|
{
|
this.IsRecommendation = isChange ? MyConvert.ConvertToBoolean(value) : IsRecommendation;
|
theValue = this.IsRecommendation;
|
}
|
else if ("IsTop".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13)
|
{
|
this.IsTop = isChange ? MyConvert.ConvertToBoolean(value) : IsTop;
|
theValue = this.IsTop;
|
}
|
else if ("InfoContent".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14)
|
{
|
this.InfoContent = isChange ? MyConvert.ConvertToString(value) : InfoContent;
|
theValue = this.InfoContent;
|
}
|
else if ("Star".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15)
|
{
|
this.Star = isChange ? MyConvert.ConvertToInt32(value) : Star;
|
theValue = this.Star;
|
}
|
else if ("Hits".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16)
|
{
|
this.Hits = isChange ? MyConvert.ConvertToInt32(value) : Hits;
|
theValue = this.Hits;
|
}
|
else if ("OrderNum".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17)
|
{
|
this.OrderNum = isChange ? MyConvert.ConvertToInt32(value) : OrderNum;
|
theValue = this.OrderNum;
|
}
|
else if ("CreatTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 18)
|
{
|
this.CreatTime = isChange ? MyConvert.ConvertToDateTime(value) : CreatTime;
|
theValue = this.CreatTime;
|
}
|
else if ("UpTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 19)
|
{
|
this.UpTime = isChange ? MyConvert.ConvertToDateTime(value) : UpTime;
|
theValue = this.UpTime;
|
}
|
else if ("GoodNum".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 20)
|
{
|
this.GoodNum = isChange ? MyConvert.ConvertToInt32(value) : GoodNum;
|
theValue = this.GoodNum;
|
}
|
else if ("MediumNum".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 21)
|
{
|
this.MediumNum = isChange ? MyConvert.ConvertToInt32(value) : MediumNum;
|
theValue = this.MediumNum;
|
}
|
else if ("BadNum".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 22)
|
{
|
this.BadNum = isChange ? MyConvert.ConvertToInt32(value) : BadNum;
|
theValue = this.BadNum;
|
}
|
else if ("TypeId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 23)
|
{
|
this.TypeId = isChange ? MyConvert.ConvertToInt32(value) : TypeId;
|
theValue = this.TypeId;
|
}
|
else if ("TypeName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 24)
|
{
|
this.TypeName = isChange ? MyConvert.ConvertToString(value) : TypeName;
|
TypeName = this.TypeName;
|
}
|
return theValue;
|
}
|
#endregion
|
}
|
}
|