namespace Song.Entities { using System; /// /// 表名:FuncPoint 主键列:FPI_Id /// [SerializableAttribute()] public partial class FuncPoint : WeiSha.Data.Entity { protected Int32 _FPI_Id; protected String _FPI_Name; protected Boolean _FPI_IsUse; protected Boolean _FPI_IsShow; protected Int32? _Org_Id; protected String _Org_Name; /// /// False /// public Int32 FPI_Id { get { return this._FPI_Id; } set { this.OnPropertyValueChange(_.FPI_Id, _FPI_Id, value); this._FPI_Id = value; } } /// /// True /// public String FPI_Name { get { return this._FPI_Name; } set { this.OnPropertyValueChange(_.FPI_Name, _FPI_Name, value); this._FPI_Name = value; } } /// /// False /// public Boolean FPI_IsUse { get { return this._FPI_IsUse; } set { this.OnPropertyValueChange(_.FPI_IsUse, _FPI_IsUse, value); this._FPI_IsUse = value; } } /// /// False /// public Boolean FPI_IsShow { get { return this._FPI_IsShow; } set { this.OnPropertyValueChange(_.FPI_IsShow, _FPI_IsShow, value); this._FPI_IsShow = 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("FuncPoint"); } /// /// 获取实体中的标识列 /// protected override WeiSha.Data.Field GetIdentityField() { return _.FPI_Id; } /// /// 获取实体中的主键列 /// protected override WeiSha.Data.Field[] GetPrimaryKeyFields() { return new WeiSha.Data.Field[] { _.FPI_Id}; } /// /// 获取列信息 /// protected override WeiSha.Data.Field[] GetFields() { return new WeiSha.Data.Field[] { _.FPI_Id, _.FPI_Name, _.FPI_IsUse, _.FPI_IsShow, _.Org_Id, _.Org_Name}; } /// /// 获取列数据 /// protected override object[] GetValues() { return new object[] { this._FPI_Id, this._FPI_Name, this._FPI_IsUse, this._FPI_IsShow, this._Org_Id, this._Org_Name}; } /// /// 给当前实体赋值 /// protected override void SetValues(WeiSha.Data.IRowReader reader) { if ((false == reader.IsDBNull(_.FPI_Id))) { this._FPI_Id = reader.GetInt32(_.FPI_Id); } if ((false == reader.IsDBNull(_.FPI_Name))) { this._FPI_Name = reader.GetString(_.FPI_Name); } if ((false == reader.IsDBNull(_.FPI_IsUse))) { this._FPI_IsUse = reader.GetBoolean(_.FPI_IsUse); } if ((false == reader.IsDBNull(_.FPI_IsShow))) { this._FPI_IsShow = reader.GetBoolean(_.FPI_IsShow); } 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(FuncPoint).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(); /// /// False - 字段名:FPI_Id - 数据类型:Int32 /// public static WeiSha.Data.Field FPI_Id = new WeiSha.Data.Field("FPI_Id"); /// /// True - 字段名:FPI_Name - 数据类型:String /// public static WeiSha.Data.Field FPI_Name = new WeiSha.Data.Field("FPI_Name"); /// /// False - 字段名:FPI_IsUse - 数据类型:Boolean /// public static WeiSha.Data.Field FPI_IsUse = new WeiSha.Data.Field("FPI_IsUse"); /// /// False - 字段名:FPI_IsShow - 数据类型:Boolean /// public static WeiSha.Data.Field FPI_IsShow = new WeiSha.Data.Field("FPI_IsShow"); /// /// 字段名: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"); } } }