namespace Song.Entities { using System; /// /// 表名:RechargeCode 主键列:Rc_ID /// [SerializableAttribute()] public partial class RechargeCode : WeiSha.Data.Entity { protected Int32 _Rc_ID; protected String _Rc_Code; protected String _Rc_Pw; protected Int32 _Rc_Price; protected DateTime _Rc_CrtTime; protected DateTime _Rc_UsedTime; protected Boolean? _Rc_IsEnable; protected Boolean _Rc_IsUsed; protected Int32 _Rc_Type; protected Int32 _Rs_ID; protected Int32 _Org_ID; protected Int32 _Ac_ID; protected String _Ac_AccName; protected DateTime _Rc_LimitStart; protected DateTime _Rc_LimitEnd; protected String _Rc_QrcodeBase64; public Int32 Rc_ID { get { return this._Rc_ID; } set { this.OnPropertyValueChange(_.Rc_ID, _Rc_ID, value); this._Rc_ID = value; } } public String Rc_Code { get { return this._Rc_Code; } set { this.OnPropertyValueChange(_.Rc_Code, _Rc_Code, value); this._Rc_Code = value; } } public String Rc_Pw { get { return this._Rc_Pw; } set { this.OnPropertyValueChange(_.Rc_Pw, _Rc_Pw, value); this._Rc_Pw = value; } } public Int32 Rc_Price { get { return this._Rc_Price; } set { this.OnPropertyValueChange(_.Rc_Price, _Rc_Price, value); this._Rc_Price = value; } } public DateTime Rc_CrtTime { get { return this._Rc_CrtTime; } set { this.OnPropertyValueChange(_.Rc_CrtTime, _Rc_CrtTime, value); this._Rc_CrtTime = value; } } public DateTime Rc_UsedTime { get { return this._Rc_UsedTime; } set { this.OnPropertyValueChange(_.Rc_UsedTime, _Rc_UsedTime, value); this._Rc_UsedTime = value; } } public Boolean? Rc_IsEnable { get { return this._Rc_IsEnable; } set { this.OnPropertyValueChange(_.Rc_IsEnable, _Rc_IsEnable, value); this._Rc_IsEnable = value; } } public Boolean Rc_IsUsed { get { return this._Rc_IsUsed; } set { this.OnPropertyValueChange(_.Rc_IsUsed, _Rc_IsUsed, value); this._Rc_IsUsed = value; } } public Int32 Rc_Type { get { return this._Rc_Type; } set { this.OnPropertyValueChange(_.Rc_Type, _Rc_Type, value); this._Rc_Type = value; } } public Int32 Rs_ID { get { return this._Rs_ID; } set { this.OnPropertyValueChange(_.Rs_ID, _Rs_ID, value); this._Rs_ID = value; } } public Int32 Org_ID { get { return this._Org_ID; } set { this.OnPropertyValueChange(_.Org_ID, _Org_ID, value); this._Org_ID = value; } } public Int32 Ac_ID { get { return this._Ac_ID; } set { this.OnPropertyValueChange(_.Ac_ID, _Ac_ID, value); this._Ac_ID = value; } } public String Ac_AccName { get { return this._Ac_AccName; } set { this.OnPropertyValueChange(_.Ac_AccName, _Ac_AccName, value); this._Ac_AccName = value; } } public DateTime Rc_LimitStart { get { return this._Rc_LimitStart; } set { this.OnPropertyValueChange(_.Rc_LimitStart, _Rc_LimitStart, value); this._Rc_LimitStart = value; } } public DateTime Rc_LimitEnd { get { return this._Rc_LimitEnd; } set { this.OnPropertyValueChange(_.Rc_LimitEnd, _Rc_LimitEnd, value); this._Rc_LimitEnd = value; } } public String Rc_QrcodeBase64 { get { return this._Rc_QrcodeBase64; } set { this.OnPropertyValueChange(_.Rc_QrcodeBase64, _Rc_QrcodeBase64, value); this._Rc_QrcodeBase64 = value; } } /// /// 获取实体对应的表名 /// protected override WeiSha.Data.Table GetTable() { return new WeiSha.Data.Table("RechargeCode"); } /// /// 获取实体中的标识列 /// protected override WeiSha.Data.Field GetIdentityField() { return _.Rc_ID; } /// /// 获取实体中的主键列 /// protected override WeiSha.Data.Field[] GetPrimaryKeyFields() { return new WeiSha.Data.Field[] { _.Rc_ID}; } /// /// 获取列信息 /// protected override WeiSha.Data.Field[] GetFields() { return new WeiSha.Data.Field[] { _.Rc_ID, _.Rc_Code, _.Rc_Pw, _.Rc_Price, _.Rc_CrtTime, _.Rc_UsedTime, _.Rc_IsEnable, _.Rc_IsUsed, _.Rc_Type, _.Rs_ID, _.Org_ID, _.Ac_ID, _.Ac_AccName, _.Rc_LimitStart, _.Rc_LimitEnd, _.Rc_QrcodeBase64}; } /// /// 获取列数据 /// protected override object[] GetValues() { return new object[] { this._Rc_ID, this._Rc_Code, this._Rc_Pw, this._Rc_Price, this._Rc_CrtTime, this._Rc_UsedTime, this._Rc_IsEnable, this._Rc_IsUsed, this._Rc_Type, this._Rs_ID, this._Org_ID, this._Ac_ID, this._Ac_AccName, this._Rc_LimitStart, this._Rc_LimitEnd, this._Rc_QrcodeBase64}; } /// /// 给当前实体赋值 /// protected override void SetValues(WeiSha.Data.IRowReader reader) { if ((false == reader.IsDBNull(_.Rc_ID))) { this._Rc_ID = reader.GetInt32(_.Rc_ID); } if ((false == reader.IsDBNull(_.Rc_Code))) { this._Rc_Code = reader.GetString(_.Rc_Code); } if ((false == reader.IsDBNull(_.Rc_Pw))) { this._Rc_Pw = reader.GetString(_.Rc_Pw); } if ((false == reader.IsDBNull(_.Rc_Price))) { this._Rc_Price = reader.GetInt32(_.Rc_Price); } if ((false == reader.IsDBNull(_.Rc_CrtTime))) { this._Rc_CrtTime = reader.GetDateTime(_.Rc_CrtTime); } if ((false == reader.IsDBNull(_.Rc_UsedTime))) { this._Rc_UsedTime = reader.GetDateTime(_.Rc_UsedTime); } if ((false == reader.IsDBNull(_.Rc_IsEnable))) { this._Rc_IsEnable = reader.GetBoolean(_.Rc_IsEnable); } if ((false == reader.IsDBNull(_.Rc_IsUsed))) { this._Rc_IsUsed = reader.GetBoolean(_.Rc_IsUsed); } if ((false == reader.IsDBNull(_.Rc_Type))) { this._Rc_Type = reader.GetInt32(_.Rc_Type); } if ((false == reader.IsDBNull(_.Rs_ID))) { this._Rs_ID = reader.GetInt32(_.Rs_ID); } if ((false == reader.IsDBNull(_.Org_ID))) { this._Org_ID = reader.GetInt32(_.Org_ID); } if ((false == reader.IsDBNull(_.Ac_ID))) { this._Ac_ID = reader.GetInt32(_.Ac_ID); } if ((false == reader.IsDBNull(_.Ac_AccName))) { this._Ac_AccName = reader.GetString(_.Ac_AccName); } if ((false == reader.IsDBNull(_.Rc_LimitStart))) { this._Rc_LimitStart = reader.GetDateTime(_.Rc_LimitStart); } if ((false == reader.IsDBNull(_.Rc_LimitEnd))) { this._Rc_LimitEnd = reader.GetDateTime(_.Rc_LimitEnd); } if ((false == reader.IsDBNull(_.Rc_QrcodeBase64))) { this._Rc_QrcodeBase64 = reader.GetString(_.Rc_QrcodeBase64); } } public override int GetHashCode() { return base.GetHashCode(); } public override bool Equals(object obj) { if ((obj == null)) { return false; } if ((false == typeof(RechargeCode).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(); /// /// 字段名:Rc_ID - 数据类型:Int32 /// public static WeiSha.Data.Field Rc_ID = new WeiSha.Data.Field("Rc_ID"); /// /// 字段名:Rc_Code - 数据类型:String /// public static WeiSha.Data.Field Rc_Code = new WeiSha.Data.Field("Rc_Code"); /// /// 字段名:Rc_Pw - 数据类型:String /// public static WeiSha.Data.Field Rc_Pw = new WeiSha.Data.Field("Rc_Pw"); /// /// 字段名:Rc_Price - 数据类型:Int32 /// public static WeiSha.Data.Field Rc_Price = new WeiSha.Data.Field("Rc_Price"); /// /// 字段名:Rc_CrtTime - 数据类型:DateTime /// public static WeiSha.Data.Field Rc_CrtTime = new WeiSha.Data.Field("Rc_CrtTime"); /// /// 字段名:Rc_UsedTime - 数据类型:DateTime /// public static WeiSha.Data.Field Rc_UsedTime = new WeiSha.Data.Field("Rc_UsedTime"); /// /// 字段名:Rc_IsEnable - 数据类型:Boolean(可空) /// public static WeiSha.Data.Field Rc_IsEnable = new WeiSha.Data.Field("Rc_IsEnable"); /// /// 字段名:Rc_IsUsed - 数据类型:Boolean /// public static WeiSha.Data.Field Rc_IsUsed = new WeiSha.Data.Field("Rc_IsUsed"); /// /// 字段名:Rc_Type - 数据类型:Int32 /// public static WeiSha.Data.Field Rc_Type = new WeiSha.Data.Field("Rc_Type"); /// /// 字段名:Rs_ID - 数据类型:Int32 /// public static WeiSha.Data.Field Rs_ID = new WeiSha.Data.Field("Rs_ID"); /// /// 字段名:Org_ID - 数据类型:Int32 /// public static WeiSha.Data.Field Org_ID = new WeiSha.Data.Field("Org_ID"); /// /// 字段名:Ac_ID - 数据类型:Int32 /// public static WeiSha.Data.Field Ac_ID = new WeiSha.Data.Field("Ac_ID"); /// /// 字段名:Ac_AccName - 数据类型:String /// public static WeiSha.Data.Field Ac_AccName = new WeiSha.Data.Field("Ac_AccName"); /// /// 字段名:Rc_LimitStart - 数据类型:DateTime /// public static WeiSha.Data.Field Rc_LimitStart = new WeiSha.Data.Field("Rc_LimitStart"); /// /// 字段名:Rc_LimitEnd - 数据类型:DateTime /// public static WeiSha.Data.Field Rc_LimitEnd = new WeiSha.Data.Field("Rc_LimitEnd"); /// /// 字段名:Rc_QrcodeBase64 - 数据类型:String /// public static WeiSha.Data.Field Rc_QrcodeBase64 = new WeiSha.Data.Field("Rc_QrcodeBase64"); } } }