ZhiYeJianKang_PeiXun/Song.Entities/Knowledge.cs
2025-02-20 15:41:53 +08:00

820 lines
22 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace Song.Entities {
using System;
/// <summary>
/// 表名Knowledge 主键列Kn_ID
/// </summary>
[SerializableAttribute()]
public partial class Knowledge : WeiSha.Data.Entity {
protected Int32 _Kn_ID;
protected String _Kns_Name;
protected Int32? _Kns_ID;
protected String _Kn_Title;
protected String _Kn_TitleFull;
protected String _Kn_TitleSub;
protected Boolean _Kn_IsUse;
protected Boolean _Kn_IsTop;
protected Boolean _Kn_IsRec;
protected Boolean _Kn_IsHot;
protected Boolean _Kn_IsDel;
protected String _Kn_Keywords;
protected String _Kn_Descr;
protected String _Kn_Author;
protected Int32 _Th_ID;
protected String _Th_Name;
protected String _Kn_Source;
protected String _Kn_Intro;
protected String _Kn_Details;
protected DateTime? _Kn_CrtTime;
protected DateTime? _Kn_LastTime;
protected Int32 _Kn_Number;
protected Boolean _Kn_IsNote;
protected String _Kn_Logo;
protected String _Kn_Label;
protected String _Kn_Uid;
protected String _OtherData;
protected Int32 _Org_ID;
protected String _Org_Name;
protected Int32 _Cou_ID;
/// <summary>
/// -1
/// </summary>
public Int32 Kn_ID {
get {
return this._Kn_ID;
}
set {
this.OnPropertyValueChange(_.Kn_ID, _Kn_ID, value);
this._Kn_ID = value;
}
}
/// <summary>
/// -1
/// </summary>
public String Kns_Name {
get {
return this._Kns_Name;
}
set {
this.OnPropertyValueChange(_.Kns_Name, _Kns_Name, value);
this._Kns_Name = value;
}
}
/// <summary>
/// -1
/// </summary>
public Int32? Kns_ID {
get {
return this._Kns_ID;
}
set {
this.OnPropertyValueChange(_.Kns_ID, _Kns_ID, value);
this._Kns_ID = value;
}
}
/// <summary>
/// -1
/// </summary>
public String Kn_Title {
get {
return this._Kn_Title;
}
set {
this.OnPropertyValueChange(_.Kn_Title, _Kn_Title, value);
this._Kn_Title = value;
}
}
/// <summary>
/// -1
/// </summary>
public String Kn_TitleFull {
get {
return this._Kn_TitleFull;
}
set {
this.OnPropertyValueChange(_.Kn_TitleFull, _Kn_TitleFull, value);
this._Kn_TitleFull = value;
}
}
/// <summary>
/// -1
/// </summary>
public String Kn_TitleSub {
get {
return this._Kn_TitleSub;
}
set {
this.OnPropertyValueChange(_.Kn_TitleSub, _Kn_TitleSub, value);
this._Kn_TitleSub = value;
}
}
/// <summary>
/// -1
/// </summary>
public Boolean Kn_IsUse {
get {
return this._Kn_IsUse;
}
set {
this.OnPropertyValueChange(_.Kn_IsUse, _Kn_IsUse, value);
this._Kn_IsUse = value;
}
}
/// <summary>
/// -1
/// </summary>
public Boolean Kn_IsTop {
get {
return this._Kn_IsTop;
}
set {
this.OnPropertyValueChange(_.Kn_IsTop, _Kn_IsTop, value);
this._Kn_IsTop = value;
}
}
/// <summary>
/// -1
/// </summary>
public Boolean Kn_IsRec {
get {
return this._Kn_IsRec;
}
set {
this.OnPropertyValueChange(_.Kn_IsRec, _Kn_IsRec, value);
this._Kn_IsRec = value;
}
}
/// <summary>
/// -1
/// </summary>
public Boolean Kn_IsHot {
get {
return this._Kn_IsHot;
}
set {
this.OnPropertyValueChange(_.Kn_IsHot, _Kn_IsHot, value);
this._Kn_IsHot = value;
}
}
/// <summary>
/// -1
/// </summary>
public Boolean Kn_IsDel {
get {
return this._Kn_IsDel;
}
set {
this.OnPropertyValueChange(_.Kn_IsDel, _Kn_IsDel, value);
this._Kn_IsDel = value;
}
}
/// <summary>
/// -1
/// </summary>
public String Kn_Keywords {
get {
return this._Kn_Keywords;
}
set {
this.OnPropertyValueChange(_.Kn_Keywords, _Kn_Keywords, value);
this._Kn_Keywords = value;
}
}
/// <summary>
/// -1
/// </summary>
public String Kn_Descr {
get {
return this._Kn_Descr;
}
set {
this.OnPropertyValueChange(_.Kn_Descr, _Kn_Descr, value);
this._Kn_Descr = value;
}
}
/// <summary>
/// -1
/// </summary>
public String Kn_Author {
get {
return this._Kn_Author;
}
set {
this.OnPropertyValueChange(_.Kn_Author, _Kn_Author, value);
this._Kn_Author = value;
}
}
/// <summary>
/// -1
/// </summary>
public Int32 Th_ID {
get {
return this._Th_ID;
}
set {
this.OnPropertyValueChange(_.Th_ID, _Th_ID, value);
this._Th_ID = value;
}
}
/// <summary>
/// -1
/// </summary>
public String Th_Name {
get {
return this._Th_Name;
}
set {
this.OnPropertyValueChange(_.Th_Name, _Th_Name, value);
this._Th_Name = value;
}
}
/// <summary>
/// -1
/// </summary>
public String Kn_Source {
get {
return this._Kn_Source;
}
set {
this.OnPropertyValueChange(_.Kn_Source, _Kn_Source, value);
this._Kn_Source = value;
}
}
/// <summary>
/// -1
/// </summary>
public String Kn_Intro {
get {
return this._Kn_Intro;
}
set {
this.OnPropertyValueChange(_.Kn_Intro, _Kn_Intro, value);
this._Kn_Intro = value;
}
}
/// <summary>
/// -1
/// </summary>
public String Kn_Details {
get {
return this._Kn_Details;
}
set {
this.OnPropertyValueChange(_.Kn_Details, _Kn_Details, value);
this._Kn_Details = value;
}
}
/// <summary>
/// -1
/// </summary>
public DateTime? Kn_CrtTime {
get {
return this._Kn_CrtTime;
}
set {
this.OnPropertyValueChange(_.Kn_CrtTime, _Kn_CrtTime, value);
this._Kn_CrtTime = value;
}
}
/// <summary>
/// -1
/// </summary>
public DateTime? Kn_LastTime {
get {
return this._Kn_LastTime;
}
set {
this.OnPropertyValueChange(_.Kn_LastTime, _Kn_LastTime, value);
this._Kn_LastTime = value;
}
}
/// <summary>
/// -1
/// </summary>
public Int32 Kn_Number {
get {
return this._Kn_Number;
}
set {
this.OnPropertyValueChange(_.Kn_Number, _Kn_Number, value);
this._Kn_Number = value;
}
}
/// <summary>
/// -1
/// </summary>
public Boolean Kn_IsNote {
get {
return this._Kn_IsNote;
}
set {
this.OnPropertyValueChange(_.Kn_IsNote, _Kn_IsNote, value);
this._Kn_IsNote = value;
}
}
/// <summary>
/// -1
/// </summary>
public String Kn_Logo {
get {
return this._Kn_Logo;
}
set {
this.OnPropertyValueChange(_.Kn_Logo, _Kn_Logo, value);
this._Kn_Logo = value;
}
}
/// <summary>
/// -1
/// </summary>
public String Kn_Label {
get {
return this._Kn_Label;
}
set {
this.OnPropertyValueChange(_.Kn_Label, _Kn_Label, value);
this._Kn_Label = value;
}
}
/// <summary>
/// -1
/// </summary>
public String Kn_Uid {
get {
return this._Kn_Uid;
}
set {
this.OnPropertyValueChange(_.Kn_Uid, _Kn_Uid, value);
this._Kn_Uid = value;
}
}
/// <summary>
/// -1
/// </summary>
public String OtherData {
get {
return this._OtherData;
}
set {
this.OnPropertyValueChange(_.OtherData, _OtherData, value);
this._OtherData = 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;
}
}
/// <summary>
/// 获取实体对应的表名
/// </summary>
protected override WeiSha.Data.Table GetTable() {
return new WeiSha.Data.Table<Knowledge>("Knowledge");
}
/// <summary>
/// 获取实体中的标识列
/// </summary>
protected override WeiSha.Data.Field GetIdentityField() {
return _.Kn_ID;
}
/// <summary>
/// 获取实体中的主键列
/// </summary>
protected override WeiSha.Data.Field[] GetPrimaryKeyFields() {
return new WeiSha.Data.Field[] {
_.Kn_ID};
}
/// <summary>
/// 获取列信息
/// </summary>
protected override WeiSha.Data.Field[] GetFields() {
return new WeiSha.Data.Field[] {
_.Kn_ID,
_.Kns_Name,
_.Kns_ID,
_.Kn_Title,
_.Kn_TitleFull,
_.Kn_TitleSub,
_.Kn_IsUse,
_.Kn_IsTop,
_.Kn_IsRec,
_.Kn_IsHot,
_.Kn_IsDel,
_.Kn_Keywords,
_.Kn_Descr,
_.Kn_Author,
_.Th_ID,
_.Th_Name,
_.Kn_Source,
_.Kn_Intro,
_.Kn_Details,
_.Kn_CrtTime,
_.Kn_LastTime,
_.Kn_Number,
_.Kn_IsNote,
_.Kn_Logo,
_.Kn_Label,
_.Kn_Uid,
_.OtherData,
_.Org_ID,
_.Org_Name,
_.Cou_ID};
}
/// <summary>
/// 获取列数据
/// </summary>
protected override object[] GetValues() {
return new object[] {
this._Kn_ID,
this._Kns_Name,
this._Kns_ID,
this._Kn_Title,
this._Kn_TitleFull,
this._Kn_TitleSub,
this._Kn_IsUse,
this._Kn_IsTop,
this._Kn_IsRec,
this._Kn_IsHot,
this._Kn_IsDel,
this._Kn_Keywords,
this._Kn_Descr,
this._Kn_Author,
this._Th_ID,
this._Th_Name,
this._Kn_Source,
this._Kn_Intro,
this._Kn_Details,
this._Kn_CrtTime,
this._Kn_LastTime,
this._Kn_Number,
this._Kn_IsNote,
this._Kn_Logo,
this._Kn_Label,
this._Kn_Uid,
this._OtherData,
this._Org_ID,
this._Org_Name,
this._Cou_ID};
}
/// <summary>
/// 给当前实体赋值
/// </summary>
protected override void SetValues(WeiSha.Data.IRowReader reader) {
if ((false == reader.IsDBNull(_.Kn_ID))) {
this._Kn_ID = reader.GetInt32(_.Kn_ID);
}
if ((false == reader.IsDBNull(_.Kns_Name))) {
this._Kns_Name = reader.GetString(_.Kns_Name);
}
if ((false == reader.IsDBNull(_.Kns_ID))) {
this._Kns_ID = reader.GetInt32(_.Kns_ID);
}
if ((false == reader.IsDBNull(_.Kn_Title))) {
this._Kn_Title = reader.GetString(_.Kn_Title);
}
if ((false == reader.IsDBNull(_.Kn_TitleFull))) {
this._Kn_TitleFull = reader.GetString(_.Kn_TitleFull);
}
if ((false == reader.IsDBNull(_.Kn_TitleSub))) {
this._Kn_TitleSub = reader.GetString(_.Kn_TitleSub);
}
if ((false == reader.IsDBNull(_.Kn_IsUse))) {
this._Kn_IsUse = reader.GetBoolean(_.Kn_IsUse);
}
if ((false == reader.IsDBNull(_.Kn_IsTop))) {
this._Kn_IsTop = reader.GetBoolean(_.Kn_IsTop);
}
if ((false == reader.IsDBNull(_.Kn_IsRec))) {
this._Kn_IsRec = reader.GetBoolean(_.Kn_IsRec);
}
if ((false == reader.IsDBNull(_.Kn_IsHot))) {
this._Kn_IsHot = reader.GetBoolean(_.Kn_IsHot);
}
if ((false == reader.IsDBNull(_.Kn_IsDel))) {
this._Kn_IsDel = reader.GetBoolean(_.Kn_IsDel);
}
if ((false == reader.IsDBNull(_.Kn_Keywords))) {
this._Kn_Keywords = reader.GetString(_.Kn_Keywords);
}
if ((false == reader.IsDBNull(_.Kn_Descr))) {
this._Kn_Descr = reader.GetString(_.Kn_Descr);
}
if ((false == reader.IsDBNull(_.Kn_Author))) {
this._Kn_Author = reader.GetString(_.Kn_Author);
}
if ((false == reader.IsDBNull(_.Th_ID))) {
this._Th_ID = reader.GetInt32(_.Th_ID);
}
if ((false == reader.IsDBNull(_.Th_Name))) {
this._Th_Name = reader.GetString(_.Th_Name);
}
if ((false == reader.IsDBNull(_.Kn_Source))) {
this._Kn_Source = reader.GetString(_.Kn_Source);
}
if ((false == reader.IsDBNull(_.Kn_Intro))) {
this._Kn_Intro = reader.GetString(_.Kn_Intro);
}
if ((false == reader.IsDBNull(_.Kn_Details))) {
this._Kn_Details = reader.GetString(_.Kn_Details);
}
if ((false == reader.IsDBNull(_.Kn_CrtTime))) {
this._Kn_CrtTime = reader.GetDateTime(_.Kn_CrtTime);
}
if ((false == reader.IsDBNull(_.Kn_LastTime))) {
this._Kn_LastTime = reader.GetDateTime(_.Kn_LastTime);
}
if ((false == reader.IsDBNull(_.Kn_Number))) {
this._Kn_Number = reader.GetInt32(_.Kn_Number);
}
if ((false == reader.IsDBNull(_.Kn_IsNote))) {
this._Kn_IsNote = reader.GetBoolean(_.Kn_IsNote);
}
if ((false == reader.IsDBNull(_.Kn_Logo))) {
this._Kn_Logo = reader.GetString(_.Kn_Logo);
}
if ((false == reader.IsDBNull(_.Kn_Label))) {
this._Kn_Label = reader.GetString(_.Kn_Label);
}
if ((false == reader.IsDBNull(_.Kn_Uid))) {
this._Kn_Uid = reader.GetString(_.Kn_Uid);
}
if ((false == reader.IsDBNull(_.OtherData))) {
this._OtherData = reader.GetString(_.OtherData);
}
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(Knowledge).IsAssignableFrom(obj.GetType()))) {
return false;
}
if ((((object)(this)) == ((object)(obj)))) {
return true;
}
return false;
}
public class _ {
/// <summary>
/// 表示选择所有列,与*等同
/// </summary>
public static WeiSha.Data.AllField All = new WeiSha.Data.AllField<Knowledge>();
/// <summary>
/// -1 - 字段名Kn_ID - 数据类型Int32
/// </summary>
public static WeiSha.Data.Field Kn_ID = new WeiSha.Data.Field<Knowledge>("Kn_ID");
/// <summary>
/// -1 - 字段名Kns_Name - 数据类型String
/// </summary>
public static WeiSha.Data.Field Kns_Name = new WeiSha.Data.Field<Knowledge>("Kns_Name");
/// <summary>
/// -1 - 字段名Kns_ID - 数据类型Int32(可空)
/// </summary>
public static WeiSha.Data.Field Kns_ID = new WeiSha.Data.Field<Knowledge>("Kns_ID");
/// <summary>
/// -1 - 字段名Kn_Title - 数据类型String
/// </summary>
public static WeiSha.Data.Field Kn_Title = new WeiSha.Data.Field<Knowledge>("Kn_Title");
/// <summary>
/// -1 - 字段名Kn_TitleFull - 数据类型String
/// </summary>
public static WeiSha.Data.Field Kn_TitleFull = new WeiSha.Data.Field<Knowledge>("Kn_TitleFull");
/// <summary>
/// -1 - 字段名Kn_TitleSub - 数据类型String
/// </summary>
public static WeiSha.Data.Field Kn_TitleSub = new WeiSha.Data.Field<Knowledge>("Kn_TitleSub");
/// <summary>
/// -1 - 字段名Kn_IsUse - 数据类型Boolean
/// </summary>
public static WeiSha.Data.Field Kn_IsUse = new WeiSha.Data.Field<Knowledge>("Kn_IsUse");
/// <summary>
/// -1 - 字段名Kn_IsTop - 数据类型Boolean
/// </summary>
public static WeiSha.Data.Field Kn_IsTop = new WeiSha.Data.Field<Knowledge>("Kn_IsTop");
/// <summary>
/// -1 - 字段名Kn_IsRec - 数据类型Boolean
/// </summary>
public static WeiSha.Data.Field Kn_IsRec = new WeiSha.Data.Field<Knowledge>("Kn_IsRec");
/// <summary>
/// -1 - 字段名Kn_IsHot - 数据类型Boolean
/// </summary>
public static WeiSha.Data.Field Kn_IsHot = new WeiSha.Data.Field<Knowledge>("Kn_IsHot");
/// <summary>
/// -1 - 字段名Kn_IsDel - 数据类型Boolean
/// </summary>
public static WeiSha.Data.Field Kn_IsDel = new WeiSha.Data.Field<Knowledge>("Kn_IsDel");
/// <summary>
/// -1 - 字段名Kn_Keywords - 数据类型String
/// </summary>
public static WeiSha.Data.Field Kn_Keywords = new WeiSha.Data.Field<Knowledge>("Kn_Keywords");
/// <summary>
/// -1 - 字段名Kn_Descr - 数据类型String
/// </summary>
public static WeiSha.Data.Field Kn_Descr = new WeiSha.Data.Field<Knowledge>("Kn_Descr");
/// <summary>
/// -1 - 字段名Kn_Author - 数据类型String
/// </summary>
public static WeiSha.Data.Field Kn_Author = new WeiSha.Data.Field<Knowledge>("Kn_Author");
/// <summary>
/// -1 - 字段名Th_ID - 数据类型Int32
/// </summary>
public static WeiSha.Data.Field Th_ID = new WeiSha.Data.Field<Knowledge>("Th_ID");
/// <summary>
/// -1 - 字段名Th_Name - 数据类型String
/// </summary>
public static WeiSha.Data.Field Th_Name = new WeiSha.Data.Field<Knowledge>("Th_Name");
/// <summary>
/// -1 - 字段名Kn_Source - 数据类型String
/// </summary>
public static WeiSha.Data.Field Kn_Source = new WeiSha.Data.Field<Knowledge>("Kn_Source");
/// <summary>
/// -1 - 字段名Kn_Intro - 数据类型String
/// </summary>
public static WeiSha.Data.Field Kn_Intro = new WeiSha.Data.Field<Knowledge>("Kn_Intro");
/// <summary>
/// -1 - 字段名Kn_Details - 数据类型String
/// </summary>
public static WeiSha.Data.Field Kn_Details = new WeiSha.Data.Field<Knowledge>("Kn_Details");
/// <summary>
/// -1 - 字段名Kn_CrtTime - 数据类型DateTime(可空)
/// </summary>
public static WeiSha.Data.Field Kn_CrtTime = new WeiSha.Data.Field<Knowledge>("Kn_CrtTime");
/// <summary>
/// -1 - 字段名Kn_LastTime - 数据类型DateTime(可空)
/// </summary>
public static WeiSha.Data.Field Kn_LastTime = new WeiSha.Data.Field<Knowledge>("Kn_LastTime");
/// <summary>
/// -1 - 字段名Kn_Number - 数据类型Int32
/// </summary>
public static WeiSha.Data.Field Kn_Number = new WeiSha.Data.Field<Knowledge>("Kn_Number");
/// <summary>
/// -1 - 字段名Kn_IsNote - 数据类型Boolean
/// </summary>
public static WeiSha.Data.Field Kn_IsNote = new WeiSha.Data.Field<Knowledge>("Kn_IsNote");
/// <summary>
/// -1 - 字段名Kn_Logo - 数据类型String
/// </summary>
public static WeiSha.Data.Field Kn_Logo = new WeiSha.Data.Field<Knowledge>("Kn_Logo");
/// <summary>
/// -1 - 字段名Kn_Label - 数据类型String
/// </summary>
public static WeiSha.Data.Field Kn_Label = new WeiSha.Data.Field<Knowledge>("Kn_Label");
/// <summary>
/// -1 - 字段名Kn_Uid - 数据类型String
/// </summary>
public static WeiSha.Data.Field Kn_Uid = new WeiSha.Data.Field<Knowledge>("Kn_Uid");
/// <summary>
/// -1 - 字段名OtherData - 数据类型String
/// </summary>
public static WeiSha.Data.Field OtherData = new WeiSha.Data.Field<Knowledge>("OtherData");
/// <summary>
/// 字段名Org_ID - 数据类型Int32
/// </summary>
public static WeiSha.Data.Field Org_ID = new WeiSha.Data.Field<Knowledge>("Org_ID");
/// <summary>
/// 字段名Org_Name - 数据类型String
/// </summary>
public static WeiSha.Data.Field Org_Name = new WeiSha.Data.Field<Knowledge>("Org_Name");
/// <summary>
/// 字段名Cou_ID - 数据类型Int32
/// </summary>
public static WeiSha.Data.Field Cou_ID = new WeiSha.Data.Field<Knowledge>("Cou_ID");
}
}
}