namespace Song.Entities { using System; /// /// 表名:TestPaperQues 主键列:Tq_Id /// [SerializableAttribute()] public partial class TestPaperQues : WeiSha.Data.Entity { protected Int32 _Tq_Id; protected Int32? _Qk_Id; protected Int32? _Tp_Id; protected Single? _Tq_Number; protected Int32? _Tq_Percent; protected Int32? _Tq_Type; protected Int32 _Org_ID; protected String _Org_Name; /// /// -1 /// public Int32 Tq_Id { get { return this._Tq_Id; } set { this.OnPropertyValueChange(_.Tq_Id, _Tq_Id, value); this._Tq_Id = value; } } /// /// -1 /// public Int32? Qk_Id { get { return this._Qk_Id; } set { this.OnPropertyValueChange(_.Qk_Id, _Qk_Id, value); this._Qk_Id = value; } } /// /// -1 /// public Int32? Tp_Id { get { return this._Tp_Id; } set { this.OnPropertyValueChange(_.Tp_Id, _Tp_Id, value); this._Tp_Id = value; } } /// /// -1 /// public Single? Tq_Number { get { return this._Tq_Number; } set { this.OnPropertyValueChange(_.Tq_Number, _Tq_Number, value); this._Tq_Number = value; } } /// /// -1 /// public Int32? Tq_Percent { get { return this._Tq_Percent; } set { this.OnPropertyValueChange(_.Tq_Percent, _Tq_Percent, value); this._Tq_Percent = value; } } /// /// -1 /// public Int32? Tq_Type { get { return this._Tq_Type; } set { this.OnPropertyValueChange(_.Tq_Type, _Tq_Type, value); this._Tq_Type = 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; } } /// /// 获取实体对应的表名 /// protected override WeiSha.Data.Table GetTable() { return new WeiSha.Data.Table("TestPaperQues"); } /// /// 获取实体中的标识列 /// protected override WeiSha.Data.Field GetIdentityField() { return _.Tq_Id; } /// /// 获取实体中的主键列 /// protected override WeiSha.Data.Field[] GetPrimaryKeyFields() { return new WeiSha.Data.Field[] { _.Tq_Id}; } /// /// 获取列信息 /// protected override WeiSha.Data.Field[] GetFields() { return new WeiSha.Data.Field[] { _.Tq_Id, _.Qk_Id, _.Tp_Id, _.Tq_Number, _.Tq_Percent, _.Tq_Type, _.Org_ID, _.Org_Name}; } /// /// 获取列数据 /// protected override object[] GetValues() { return new object[] { this._Tq_Id, this._Qk_Id, this._Tp_Id, this._Tq_Number, this._Tq_Percent, this._Tq_Type, this._Org_ID, this._Org_Name}; } /// /// 给当前实体赋值 /// protected override void SetValues(WeiSha.Data.IRowReader reader) { if ((false == reader.IsDBNull(_.Tq_Id))) { this._Tq_Id = reader.GetInt32(_.Tq_Id); } if ((false == reader.IsDBNull(_.Qk_Id))) { this._Qk_Id = reader.GetInt32(_.Qk_Id); } if ((false == reader.IsDBNull(_.Tp_Id))) { this._Tp_Id = reader.GetInt32(_.Tp_Id); } if ((false == reader.IsDBNull(_.Tq_Number))) { this._Tq_Number = reader.GetFloat(_.Tq_Number); } if ((false == reader.IsDBNull(_.Tq_Percent))) { this._Tq_Percent = reader.GetInt32(_.Tq_Percent); } if ((false == reader.IsDBNull(_.Tq_Type))) { this._Tq_Type = reader.GetInt32(_.Tq_Type); } 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); } } public override int GetHashCode() { return base.GetHashCode(); } public override bool Equals(object obj) { if ((obj == null)) { return false; } if ((false == typeof(TestPaperQues).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 - 字段名:Tq_Id - 数据类型:Int32 /// public static WeiSha.Data.Field Tq_Id = new WeiSha.Data.Field("Tq_Id"); /// /// -1 - 字段名:Qk_Id - 数据类型:Int32(可空) /// public static WeiSha.Data.Field Qk_Id = new WeiSha.Data.Field("Qk_Id"); /// /// -1 - 字段名:Tp_Id - 数据类型:Int32(可空) /// public static WeiSha.Data.Field Tp_Id = new WeiSha.Data.Field("Tp_Id"); /// /// -1 - 字段名:Tq_Number - 数据类型:Single(可空) /// public static WeiSha.Data.Field Tq_Number = new WeiSha.Data.Field("Tq_Number"); /// /// -1 - 字段名:Tq_Percent - 数据类型:Int32(可空) /// public static WeiSha.Data.Field Tq_Percent = new WeiSha.Data.Field("Tq_Percent"); /// /// -1 - 字段名:Tq_Type - 数据类型:Int32(可空) /// public static WeiSha.Data.Field Tq_Type = new WeiSha.Data.Field("Tq_Type"); /// /// 字段名: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"); } } }