using System;
using CY.Infrastructure.Domain;
using CY.Infrastructure.Common;
namespace CY.Model
{
///
/// ×ÊѶÄÚÈÝ
///
[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;
///
/// Ö÷¼üID
///
public int? Keyid
{
set{ _keyid=value;}
get{return _keyid;}
}
///
/// ËùÊôÉ̼ÒID
///
public Guid MemberId
{
set{ _memberid=value;}
get{return _memberid;}
}
///
/// ±êÌâ
///
public string Title
{
set{ _title=value;}
get{return _title;}
}
///
/// ±êÌâÊÇ·ñΪ´ÖÌå
///
public bool Title_Bold
{
set{ _title_bold=value;}
get{return _title_bold;}
}
///
/// ±êÌâÑÕÉ«
///
public string Title_Color
{
set{ _title_color=value;}
get{return _title_color;}
}
///
/// ·ÖÀàID
///
public int? SortID
{
set{ _sortid=value;}
get{return _sortid;}
}
///
/// ¹Ø¼ü´Ê
///
public string Keyword
{
set{ _keyword=value;}
get{return _keyword;}
}
///
/// ÃèÊö
///
public string MeteDesc
{
set{ _metedesc=value;}
get{return _metedesc;}
}
///
/// À´Ô´
///
public string FromSource
{
set{ _fromsource=value;}
get{return _fromsource;}
}
///
/// ×÷Õß
///
public string Author
{
set{ _author=value;}
get{return _author;}
}
///
/// ÍⲿÁ¬½Ó
///
public string WebLink
{
set{ _weblink=value;}
get{return _weblink;}
}
///
/// ÊÇ·ñÍÆ¼ö
///
public bool IsRecommendation
{
set{ _isrecommendation=value;}
get{return _isrecommendation;}
}
///
/// ÊÇ·ñÖö¥
///
public bool IsTop
{
set{ _istop=value;}
get{return _istop;}
}
///
/// ÄÚÈÝ
///
public string InfoContent
{
set{ _infocontent=value;}
get{return _infocontent;}
}
///
/// ÐǼ¶
///
public int? Star
{
set{ _star=value;}
get{return _star;}
}
///
/// µã»÷Êý
///
public int? Hits
{
set{ _hits=value;}
get{return _hits;}
}
///
/// ÅÅÐò
///
public int? OrderNum
{
set{ _ordernum=value;}
get{return _ordernum;}
}
///
/// ·¢²¼Ê±¼ä
///
public DateTime? CreatTime
{
set{ _creattime=value;}
get{return _creattime;}
}
///
/// ×î½ü¸üÐÂʱ¼ä
///
public DateTime? UpTime
{
set{ _uptime=value;}
get{return _uptime;}
}
///
/// ºÃÆÀ
///
public int? GoodNum
{
set{ _goodnum=value;}
get{return _goodnum;}
}
///
/// ÖÐÆÀ
///
public int? MediumNum
{
set{ _mediumnum=value;}
get{return _mediumnum;}
}
///
/// ²îÆÀ
///
public int? BadNum
{
set{ _badnum=value;}
get{return _badnum;}
}
///
/// ÐÅÏ¢ÀàÐͱàºÅ
///
public int? TypeId
{
set
{
_typeid = value;
}
get
{
return _typeid;
}
}
///
/// ·ÖÀàÃû³Æ
///
public string TypeName
{
get;
set;
}
#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 ("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
}
}