namespace Song.Entities { using System; /// /// 表名:Examination 主键列:Exam_ID /// [SerializableAttribute()] public partial class Examination : WeiSha.Data.Entity { protected Int32 _Exam_ID; protected String _Exam_Title; protected DateTime _Exam_CrtTime; protected String _Exam_Intro; protected Boolean _Exam_IsUse; protected Boolean _Exam_IsTheme; protected Int32 _Exam_GroupType; protected String _Exam_Monitor; protected DateTime _Exam_Date; protected Int32 _Exam_Span; protected Int32 _Sbj_ID; protected String _Sbj_Name; protected String _Exam_UID; protected Int32 _Th_ID; protected String _Th_Name; protected Int32 _Tp_Id; protected Int32 _Exam_PassScore; protected Int32 _Org_ID; protected String _Org_Name; protected String _Exam_Name; protected Int32 _Exam_Total; protected Int32 _Exam_Tax; protected DateTime _Exam_DateOver; protected Int32 _Exam_DateType; protected Boolean _Exam_IsToggle; protected Boolean _Exam_IsShowBtn; protected Boolean _Exam_IsRightClick; /// /// -1 /// public Int32 Exam_ID { get { return this._Exam_ID; } set { this.OnPropertyValueChange(_.Exam_ID, _Exam_ID, value); this._Exam_ID = value; } } /// /// -1 /// public String Exam_Title { get { return this._Exam_Title; } set { this.OnPropertyValueChange(_.Exam_Title, _Exam_Title, value); this._Exam_Title = value; } } /// /// -1 /// public DateTime Exam_CrtTime { get { return this._Exam_CrtTime; } set { this.OnPropertyValueChange(_.Exam_CrtTime, _Exam_CrtTime, value); this._Exam_CrtTime = value; } } /// /// -1 /// public String Exam_Intro { get { return this._Exam_Intro; } set { this.OnPropertyValueChange(_.Exam_Intro, _Exam_Intro, value); this._Exam_Intro = value; } } /// /// -1 /// public Boolean Exam_IsUse { get { return this._Exam_IsUse; } set { this.OnPropertyValueChange(_.Exam_IsUse, _Exam_IsUse, value); this._Exam_IsUse = value; } } /// /// -1 /// public Boolean Exam_IsTheme { get { return this._Exam_IsTheme; } set { this.OnPropertyValueChange(_.Exam_IsTheme, _Exam_IsTheme, value); this._Exam_IsTheme = value; } } /// /// -1 /// public Int32 Exam_GroupType { get { return this._Exam_GroupType; } set { this.OnPropertyValueChange(_.Exam_GroupType, _Exam_GroupType, value); this._Exam_GroupType = value; } } /// /// -1 /// public String Exam_Monitor { get { return this._Exam_Monitor; } set { this.OnPropertyValueChange(_.Exam_Monitor, _Exam_Monitor, value); this._Exam_Monitor = value; } } /// /// -1 /// public DateTime Exam_Date { get { return this._Exam_Date; } set { this.OnPropertyValueChange(_.Exam_Date, _Exam_Date, value); this._Exam_Date = value; } } /// /// -1 /// public Int32 Exam_Span { get { return this._Exam_Span; } set { this.OnPropertyValueChange(_.Exam_Span, _Exam_Span, value); this._Exam_Span = value; } } /// /// -1 /// public Int32 Sbj_ID { get { return this._Sbj_ID; } set { this.OnPropertyValueChange(_.Sbj_ID, _Sbj_ID, value); this._Sbj_ID = value; } } /// /// -1 /// public String Sbj_Name { get { return this._Sbj_Name; } set { this.OnPropertyValueChange(_.Sbj_Name, _Sbj_Name, value); this._Sbj_Name = value; } } /// /// -1 /// public String Exam_UID { get { return this._Exam_UID; } set { this.OnPropertyValueChange(_.Exam_UID, _Exam_UID, value); this._Exam_UID = value; } } /// /// -1 /// public Int32 Th_ID { get { return this._Th_ID; } set { this.OnPropertyValueChange(_.Th_ID, _Th_ID, value); this._Th_ID = value; } } /// /// -1 /// public String Th_Name { get { return this._Th_Name; } set { this.OnPropertyValueChange(_.Th_Name, _Th_Name, value); this._Th_Name = value; } } /// /// -1 /// public Int32 Tp_Id { get { return this._Tp_Id; } set { this.OnPropertyValueChange(_.Tp_Id, _Tp_Id, value); this._Tp_Id = value; } } public Int32 Exam_PassScore { get { return this._Exam_PassScore; } set { this.OnPropertyValueChange(_.Exam_PassScore, _Exam_PassScore, value); this._Exam_PassScore = 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; } } /// /// -1 /// public String Exam_Name { get { return this._Exam_Name; } set { this.OnPropertyValueChange(_.Exam_Name, _Exam_Name, value); this._Exam_Name = value; } } public Int32 Exam_Total { get { return this._Exam_Total; } set { this.OnPropertyValueChange(_.Exam_Total, _Exam_Total, value); this._Exam_Total = value; } } public Int32 Exam_Tax { get { return this._Exam_Tax; } set { this.OnPropertyValueChange(_.Exam_Tax, _Exam_Tax, value); this._Exam_Tax = value; } } public DateTime Exam_DateOver { get { return this._Exam_DateOver; } set { this.OnPropertyValueChange(_.Exam_DateOver, _Exam_DateOver, value); this._Exam_DateOver = value; } } public Int32 Exam_DateType { get { return this._Exam_DateType; } set { this.OnPropertyValueChange(_.Exam_DateType, _Exam_DateType, value); this._Exam_DateType = value; } } public Boolean Exam_IsToggle { get { return this._Exam_IsToggle; } set { this.OnPropertyValueChange(_.Exam_IsToggle, _Exam_IsToggle, value); this._Exam_IsToggle = value; } } public Boolean Exam_IsShowBtn { get { return this._Exam_IsShowBtn; } set { this.OnPropertyValueChange(_.Exam_IsShowBtn, _Exam_IsShowBtn, value); this._Exam_IsShowBtn = value; } } public Boolean Exam_IsRightClick { get { return this._Exam_IsRightClick; } set { this.OnPropertyValueChange(_.Exam_IsRightClick, _Exam_IsRightClick, value); this._Exam_IsRightClick = value; } } /// /// 获取实体对应的表名 /// protected override WeiSha.Data.Table GetTable() { return new WeiSha.Data.Table("Examination"); } /// /// 获取实体中的标识列 /// protected override WeiSha.Data.Field GetIdentityField() { return _.Exam_ID; } /// /// 获取实体中的主键列 /// protected override WeiSha.Data.Field[] GetPrimaryKeyFields() { return new WeiSha.Data.Field[] { _.Exam_ID}; } /// /// 获取列信息 /// protected override WeiSha.Data.Field[] GetFields() { return new WeiSha.Data.Field[] { _.Exam_ID, _.Exam_Title, _.Exam_CrtTime, _.Exam_Intro, _.Exam_IsUse, _.Exam_IsTheme, _.Exam_GroupType, _.Exam_Monitor, _.Exam_Date, _.Exam_Span, _.Sbj_ID, _.Sbj_Name, _.Exam_UID, _.Th_ID, _.Th_Name, _.Tp_Id, _.Exam_PassScore, _.Org_ID, _.Org_Name, _.Exam_Name, _.Exam_Total, _.Exam_Tax, _.Exam_DateOver, _.Exam_DateType, _.Exam_IsToggle, _.Exam_IsShowBtn, _.Exam_IsRightClick}; } /// /// 获取列数据 /// protected override object[] GetValues() { return new object[] { this._Exam_ID, this._Exam_Title, this._Exam_CrtTime, this._Exam_Intro, this._Exam_IsUse, this._Exam_IsTheme, this._Exam_GroupType, this._Exam_Monitor, this._Exam_Date, this._Exam_Span, this._Sbj_ID, this._Sbj_Name, this._Exam_UID, this._Th_ID, this._Th_Name, this._Tp_Id, this._Exam_PassScore, this._Org_ID, this._Org_Name, this._Exam_Name, this._Exam_Total, this._Exam_Tax, this._Exam_DateOver, this._Exam_DateType, this._Exam_IsToggle, this._Exam_IsShowBtn, this._Exam_IsRightClick}; } /// /// 给当前实体赋值 /// protected override void SetValues(WeiSha.Data.IRowReader reader) { if ((false == reader.IsDBNull(_.Exam_ID))) { this._Exam_ID = reader.GetInt32(_.Exam_ID); } if ((false == reader.IsDBNull(_.Exam_Title))) { this._Exam_Title = reader.GetString(_.Exam_Title); } if ((false == reader.IsDBNull(_.Exam_CrtTime))) { this._Exam_CrtTime = reader.GetDateTime(_.Exam_CrtTime); } if ((false == reader.IsDBNull(_.Exam_Intro))) { this._Exam_Intro = reader.GetString(_.Exam_Intro); } if ((false == reader.IsDBNull(_.Exam_IsUse))) { this._Exam_IsUse = reader.GetBoolean(_.Exam_IsUse); } if ((false == reader.IsDBNull(_.Exam_IsTheme))) { this._Exam_IsTheme = reader.GetBoolean(_.Exam_IsTheme); } if ((false == reader.IsDBNull(_.Exam_GroupType))) { this._Exam_GroupType = reader.GetInt32(_.Exam_GroupType); } if ((false == reader.IsDBNull(_.Exam_Monitor))) { this._Exam_Monitor = reader.GetString(_.Exam_Monitor); } if ((false == reader.IsDBNull(_.Exam_Date))) { this._Exam_Date = reader.GetDateTime(_.Exam_Date); } if ((false == reader.IsDBNull(_.Exam_Span))) { this._Exam_Span = reader.GetInt32(_.Exam_Span); } if ((false == reader.IsDBNull(_.Sbj_ID))) { this._Sbj_ID = reader.GetInt32(_.Sbj_ID); } if ((false == reader.IsDBNull(_.Sbj_Name))) { this._Sbj_Name = reader.GetString(_.Sbj_Name); } if ((false == reader.IsDBNull(_.Exam_UID))) { this._Exam_UID = reader.GetString(_.Exam_UID); } 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(_.Tp_Id))) { this._Tp_Id = reader.GetInt32(_.Tp_Id); } if ((false == reader.IsDBNull(_.Exam_PassScore))) { this._Exam_PassScore = reader.GetInt32(_.Exam_PassScore); } 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(_.Exam_Name))) { this._Exam_Name = reader.GetString(_.Exam_Name); } if ((false == reader.IsDBNull(_.Exam_Total))) { this._Exam_Total = reader.GetInt32(_.Exam_Total); } if ((false == reader.IsDBNull(_.Exam_Tax))) { this._Exam_Tax = reader.GetInt32(_.Exam_Tax); } if ((false == reader.IsDBNull(_.Exam_DateOver))) { this._Exam_DateOver = reader.GetDateTime(_.Exam_DateOver); } if ((false == reader.IsDBNull(_.Exam_DateType))) { this._Exam_DateType = reader.GetInt32(_.Exam_DateType); } if ((false == reader.IsDBNull(_.Exam_IsToggle))) { this._Exam_IsToggle = reader.GetBoolean(_.Exam_IsToggle); } if ((false == reader.IsDBNull(_.Exam_IsShowBtn))) { this._Exam_IsShowBtn = reader.GetBoolean(_.Exam_IsShowBtn); } if ((false == reader.IsDBNull(_.Exam_IsRightClick))) { this._Exam_IsRightClick = reader.GetBoolean(_.Exam_IsRightClick); } } public override int GetHashCode() { return base.GetHashCode(); } public override bool Equals(object obj) { if ((obj == null)) { return false; } if ((false == typeof(Examination).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 - 字段名:Exam_ID - 数据类型:Int32 /// public static WeiSha.Data.Field Exam_ID = new WeiSha.Data.Field("Exam_ID"); /// /// -1 - 字段名:Exam_Title - 数据类型:String /// public static WeiSha.Data.Field Exam_Title = new WeiSha.Data.Field("Exam_Title"); /// /// -1 - 字段名:Exam_CrtTime - 数据类型:DateTime /// public static WeiSha.Data.Field Exam_CrtTime = new WeiSha.Data.Field("Exam_CrtTime"); /// /// -1 - 字段名:Exam_Intro - 数据类型:String /// public static WeiSha.Data.Field Exam_Intro = new WeiSha.Data.Field("Exam_Intro"); /// /// -1 - 字段名:Exam_IsUse - 数据类型:Boolean /// public static WeiSha.Data.Field Exam_IsUse = new WeiSha.Data.Field("Exam_IsUse"); /// /// -1 - 字段名:Exam_IsTheme - 数据类型:Boolean /// public static WeiSha.Data.Field Exam_IsTheme = new WeiSha.Data.Field("Exam_IsTheme"); /// /// -1 - 字段名:Exam_GroupType - 数据类型:Int32 /// public static WeiSha.Data.Field Exam_GroupType = new WeiSha.Data.Field("Exam_GroupType"); /// /// -1 - 字段名:Exam_Monitor - 数据类型:String /// public static WeiSha.Data.Field Exam_Monitor = new WeiSha.Data.Field("Exam_Monitor"); /// /// -1 - 字段名:Exam_Date - 数据类型:DateTime /// public static WeiSha.Data.Field Exam_Date = new WeiSha.Data.Field("Exam_Date"); /// /// -1 - 字段名:Exam_Span - 数据类型:Int32 /// public static WeiSha.Data.Field Exam_Span = new WeiSha.Data.Field("Exam_Span"); /// /// -1 - 字段名:Sbj_ID - 数据类型:Int32 /// public static WeiSha.Data.Field Sbj_ID = new WeiSha.Data.Field("Sbj_ID"); /// /// -1 - 字段名:Sbj_Name - 数据类型:String /// public static WeiSha.Data.Field Sbj_Name = new WeiSha.Data.Field("Sbj_Name"); /// /// -1 - 字段名:Exam_UID - 数据类型:String /// public static WeiSha.Data.Field Exam_UID = new WeiSha.Data.Field("Exam_UID"); /// /// -1 - 字段名:Th_ID - 数据类型:Int32 /// public static WeiSha.Data.Field Th_ID = new WeiSha.Data.Field("Th_ID"); /// /// -1 - 字段名:Th_Name - 数据类型:String /// public static WeiSha.Data.Field Th_Name = new WeiSha.Data.Field("Th_Name"); /// /// -1 - 字段名:Tp_Id - 数据类型:Int32 /// public static WeiSha.Data.Field Tp_Id = new WeiSha.Data.Field("Tp_Id"); /// /// 字段名:Exam_PassScore - 数据类型:Int32 /// public static WeiSha.Data.Field Exam_PassScore = new WeiSha.Data.Field("Exam_PassScore"); /// /// 字段名: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"); /// /// -1 - 字段名:Exam_Name - 数据类型:String /// public static WeiSha.Data.Field Exam_Name = new WeiSha.Data.Field("Exam_Name"); /// /// 字段名:Exam_Total - 数据类型:Int32 /// public static WeiSha.Data.Field Exam_Total = new WeiSha.Data.Field("Exam_Total"); /// /// 字段名:Exam_Tax - 数据类型:Int32 /// public static WeiSha.Data.Field Exam_Tax = new WeiSha.Data.Field("Exam_Tax"); /// /// 字段名:Exam_DateOver - 数据类型:DateTime /// public static WeiSha.Data.Field Exam_DateOver = new WeiSha.Data.Field("Exam_DateOver"); /// /// 字段名:Exam_DateType - 数据类型:Int32 /// public static WeiSha.Data.Field Exam_DateType = new WeiSha.Data.Field("Exam_DateType"); /// /// 字段名:Exam_IsToggle - 数据类型:Boolean /// public static WeiSha.Data.Field Exam_IsToggle = new WeiSha.Data.Field("Exam_IsToggle"); /// /// 字段名:Exam_IsShowBtn - 数据类型:Boolean /// public static WeiSha.Data.Field Exam_IsShowBtn = new WeiSha.Data.Field("Exam_IsShowBtn"); /// /// 字段名:Exam_IsRightClick - 数据类型:Boolean /// public static WeiSha.Data.Field Exam_IsRightClick = new WeiSha.Data.Field("Exam_IsRightClick"); } } }