namespace Song.Entities { using System; /// /// 表名:KnowledgeSort 主键列:Kns_ID /// [SerializableAttribute()] public partial class KnowledgeSort : WeiSha.Data.Entity { protected Int32 _Kns_ID; protected String _Kns_Name; protected String _Kns_ByName; protected Int32 _Kns_PID; protected Int32 _Kns_Tax; protected Boolean _Kns_IsUse; protected String _Kns_Type; protected String _Kns_Intro; protected DateTime? _Kns_CrtTime; protected Int32 _Org_ID; protected String _Org_Name; protected Int32 _Cou_ID; /// /// -1 /// public Int32 Kns_ID { get { return this._Kns_ID; } set { this.OnPropertyValueChange(_.Kns_ID, _Kns_ID, value); this._Kns_ID = value; } } /// /// -1 /// public String Kns_Name { get { return this._Kns_Name; } set { this.OnPropertyValueChange(_.Kns_Name, _Kns_Name, value); this._Kns_Name = value; } } /// /// -1 /// public String Kns_ByName { get { return this._Kns_ByName; } set { this.OnPropertyValueChange(_.Kns_ByName, _Kns_ByName, value); this._Kns_ByName = value; } } /// /// -1 /// public Int32 Kns_PID { get { return this._Kns_PID; } set { this.OnPropertyValueChange(_.Kns_PID, _Kns_PID, value); this._Kns_PID = value; } } /// /// -1 /// public Int32 Kns_Tax { get { return this._Kns_Tax; } set { this.OnPropertyValueChange(_.Kns_Tax, _Kns_Tax, value); this._Kns_Tax = value; } } /// /// -1 /// public Boolean Kns_IsUse { get { return this._Kns_IsUse; } set { this.OnPropertyValueChange(_.Kns_IsUse, _Kns_IsUse, value); this._Kns_IsUse = value; } } /// /// -1 /// public String Kns_Type { get { return this._Kns_Type; } set { this.OnPropertyValueChange(_.Kns_Type, _Kns_Type, value); this._Kns_Type = value; } } /// /// -1 /// public String Kns_Intro { get { return this._Kns_Intro; } set { this.OnPropertyValueChange(_.Kns_Intro, _Kns_Intro, value); this._Kns_Intro = value; } } /// /// -1 /// public DateTime? Kns_CrtTime { get { return this._Kns_CrtTime; } set { this.OnPropertyValueChange(_.Kns_CrtTime, _Kns_CrtTime, value); this._Kns_CrtTime = value; } } public Int32 Org_ID { get { return this._Org_ID; } set { this.OnPropertyValueChange(_.Org_ID, _Org_ID, value); this._Org_ID = value; } } public String Org_Name { get { return this._Org_Name; } set { this.OnPropertyValueChange(_.Org_Name, _Org_Name, value); this._Org_Name = value; } } public Int32 Cou_ID { get { return this._Cou_ID; } set { this.OnPropertyValueChange(_.Cou_ID, _Cou_ID, value); this._Cou_ID = value; } } /// /// 获取实体对应的表名 /// protected override WeiSha.Data.Table GetTable() { return new WeiSha.Data.Table("KnowledgeSort"); } /// /// 获取实体中的标识列 /// protected override WeiSha.Data.Field GetIdentityField() { return _.Kns_ID; } /// /// 获取实体中的主键列 /// protected override WeiSha.Data.Field[] GetPrimaryKeyFields() { return new WeiSha.Data.Field[] { _.Kns_ID}; } /// /// 获取列信息 /// protected override WeiSha.Data.Field[] GetFields() { return new WeiSha.Data.Field[] { _.Kns_ID, _.Kns_Name, _.Kns_ByName, _.Kns_PID, _.Kns_Tax, _.Kns_IsUse, _.Kns_Type, _.Kns_Intro, _.Kns_CrtTime, _.Org_ID, _.Org_Name, _.Cou_ID}; } /// /// 获取列数据 /// protected override object[] GetValues() { return new object[] { this._Kns_ID, this._Kns_Name, this._Kns_ByName, this._Kns_PID, this._Kns_Tax, this._Kns_IsUse, this._Kns_Type, this._Kns_Intro, this._Kns_CrtTime, this._Org_ID, this._Org_Name, this._Cou_ID}; } /// /// 给当前实体赋值 /// protected override void SetValues(WeiSha.Data.IRowReader reader) { if ((false == reader.IsDBNull(_.Kns_ID))) { this._Kns_ID = reader.GetInt32(_.Kns_ID); } if ((false == reader.IsDBNull(_.Kns_Name))) { this._Kns_Name = reader.GetString(_.Kns_Name); } if ((false == reader.IsDBNull(_.Kns_ByName))) { this._Kns_ByName = reader.GetString(_.Kns_ByName); } if ((false == reader.IsDBNull(_.Kns_PID))) { this._Kns_PID = reader.GetInt32(_.Kns_PID); } if ((false == reader.IsDBNull(_.Kns_Tax))) { this._Kns_Tax = reader.GetInt32(_.Kns_Tax); } if ((false == reader.IsDBNull(_.Kns_IsUse))) { this._Kns_IsUse = reader.GetBoolean(_.Kns_IsUse); } if ((false == reader.IsDBNull(_.Kns_Type))) { this._Kns_Type = reader.GetString(_.Kns_Type); } if ((false == reader.IsDBNull(_.Kns_Intro))) { this._Kns_Intro = reader.GetString(_.Kns_Intro); } if ((false == reader.IsDBNull(_.Kns_CrtTime))) { this._Kns_CrtTime = reader.GetDateTime(_.Kns_CrtTime); } if ((false == reader.IsDBNull(_.Org_ID))) { this._Org_ID = reader.GetInt32(_.Org_ID); } if ((false == reader.IsDBNull(_.Org_Name))) { this._Org_Name = reader.GetString(_.Org_Name); } if ((false == reader.IsDBNull(_.Cou_ID))) { this._Cou_ID = reader.GetInt32(_.Cou_ID); } } public override int GetHashCode() { return base.GetHashCode(); } public override bool Equals(object obj) { if ((obj == null)) { return false; } if ((false == typeof(KnowledgeSort).IsAssignableFrom(obj.GetType()))) { return false; } if ((((object)(this)) == ((object)(obj)))) { return true; } return false; } public class _ { /// /// 表示选择所有列,与*等同 /// public static WeiSha.Data.AllField All = new WeiSha.Data.AllField(); /// /// -1 - 字段名:Kns_ID - 数据类型:Int32 /// public static WeiSha.Data.Field Kns_ID = new WeiSha.Data.Field("Kns_ID"); /// /// -1 - 字段名:Kns_Name - 数据类型:String /// public static WeiSha.Data.Field Kns_Name = new WeiSha.Data.Field("Kns_Name"); /// /// -1 - 字段名:Kns_ByName - 数据类型:String /// public static WeiSha.Data.Field Kns_ByName = new WeiSha.Data.Field("Kns_ByName"); /// /// -1 - 字段名:Kns_PID - 数据类型:Int32 /// public static WeiSha.Data.Field Kns_PID = new WeiSha.Data.Field("Kns_PID"); /// /// -1 - 字段名:Kns_Tax - 数据类型:Int32 /// public static WeiSha.Data.Field Kns_Tax = new WeiSha.Data.Field("Kns_Tax"); /// /// -1 - 字段名:Kns_IsUse - 数据类型:Boolean /// public static WeiSha.Data.Field Kns_IsUse = new WeiSha.Data.Field("Kns_IsUse"); /// /// -1 - 字段名:Kns_Type - 数据类型:String /// public static WeiSha.Data.Field Kns_Type = new WeiSha.Data.Field("Kns_Type"); /// /// -1 - 字段名:Kns_Intro - 数据类型:String /// public static WeiSha.Data.Field Kns_Intro = new WeiSha.Data.Field("Kns_Intro"); /// /// -1 - 字段名:Kns_CrtTime - 数据类型:DateTime(可空) /// public static WeiSha.Data.Field Kns_CrtTime = new WeiSha.Data.Field("Kns_CrtTime"); /// /// 字段名:Org_ID - 数据类型:Int32 /// public static WeiSha.Data.Field Org_ID = new WeiSha.Data.Field("Org_ID"); /// /// 字段名:Org_Name - 数据类型:String /// public static WeiSha.Data.Field Org_Name = new WeiSha.Data.Field("Org_Name"); /// /// 字段名:Cou_ID - 数据类型:Int32 /// public static WeiSha.Data.Field Cou_ID = new WeiSha.Data.Field("Cou_ID"); } } }