namespace Song.Entities {
using System;
///
/// 表名:EmpGroup 主键列:EGrp_Id
///
[SerializableAttribute()]
public partial class EmpGroup : WeiSha.Data.Entity {
protected Int32 _EGrp_Id;
protected String _EGrp_Name;
protected Boolean _EGrp_IsUse;
protected Int32 _EGrp_Tax;
protected String _EGrp_Intro;
protected Boolean _EGrp_IsSystem;
protected Int32 _Org_ID;
protected String _Org_Name;
///
/// -1
///
public Int32 EGrp_Id {
get {
return this._EGrp_Id;
}
set {
this.OnPropertyValueChange(_.EGrp_Id, _EGrp_Id, value);
this._EGrp_Id = value;
}
}
///
/// -1
///
public String EGrp_Name {
get {
return this._EGrp_Name;
}
set {
this.OnPropertyValueChange(_.EGrp_Name, _EGrp_Name, value);
this._EGrp_Name = value;
}
}
///
/// -1
///
public Boolean EGrp_IsUse {
get {
return this._EGrp_IsUse;
}
set {
this.OnPropertyValueChange(_.EGrp_IsUse, _EGrp_IsUse, value);
this._EGrp_IsUse = value;
}
}
///
/// -1
///
public Int32 EGrp_Tax {
get {
return this._EGrp_Tax;
}
set {
this.OnPropertyValueChange(_.EGrp_Tax, _EGrp_Tax, value);
this._EGrp_Tax = value;
}
}
///
/// -1
///
public String EGrp_Intro {
get {
return this._EGrp_Intro;
}
set {
this.OnPropertyValueChange(_.EGrp_Intro, _EGrp_Intro, value);
this._EGrp_Intro = value;
}
}
///
/// -1
///
public Boolean EGrp_IsSystem {
get {
return this._EGrp_IsSystem;
}
set {
this.OnPropertyValueChange(_.EGrp_IsSystem, _EGrp_IsSystem, value);
this._EGrp_IsSystem = 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("EmpGroup");
}
///
/// 获取实体中的标识列
///
protected override WeiSha.Data.Field GetIdentityField() {
return _.EGrp_Id;
}
///
/// 获取实体中的主键列
///
protected override WeiSha.Data.Field[] GetPrimaryKeyFields() {
return new WeiSha.Data.Field[] {
_.EGrp_Id};
}
///
/// 获取列信息
///
protected override WeiSha.Data.Field[] GetFields() {
return new WeiSha.Data.Field[] {
_.EGrp_Id,
_.EGrp_Name,
_.EGrp_IsUse,
_.EGrp_Tax,
_.EGrp_Intro,
_.EGrp_IsSystem,
_.Org_ID,
_.Org_Name};
}
///
/// 获取列数据
///
protected override object[] GetValues() {
return new object[] {
this._EGrp_Id,
this._EGrp_Name,
this._EGrp_IsUse,
this._EGrp_Tax,
this._EGrp_Intro,
this._EGrp_IsSystem,
this._Org_ID,
this._Org_Name};
}
///
/// 给当前实体赋值
///
protected override void SetValues(WeiSha.Data.IRowReader reader) {
if ((false == reader.IsDBNull(_.EGrp_Id))) {
this._EGrp_Id = reader.GetInt32(_.EGrp_Id);
}
if ((false == reader.IsDBNull(_.EGrp_Name))) {
this._EGrp_Name = reader.GetString(_.EGrp_Name);
}
if ((false == reader.IsDBNull(_.EGrp_IsUse))) {
this._EGrp_IsUse = reader.GetBoolean(_.EGrp_IsUse);
}
if ((false == reader.IsDBNull(_.EGrp_Tax))) {
this._EGrp_Tax = reader.GetInt32(_.EGrp_Tax);
}
if ((false == reader.IsDBNull(_.EGrp_Intro))) {
this._EGrp_Intro = reader.GetString(_.EGrp_Intro);
}
if ((false == reader.IsDBNull(_.EGrp_IsSystem))) {
this._EGrp_IsSystem = reader.GetBoolean(_.EGrp_IsSystem);
}
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(EmpGroup).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 - 字段名:EGrp_Id - 数据类型:Int32
///
public static WeiSha.Data.Field EGrp_Id = new WeiSha.Data.Field("EGrp_Id");
///
/// -1 - 字段名:EGrp_Name - 数据类型:String
///
public static WeiSha.Data.Field EGrp_Name = new WeiSha.Data.Field("EGrp_Name");
///
/// -1 - 字段名:EGrp_IsUse - 数据类型:Boolean
///
public static WeiSha.Data.Field EGrp_IsUse = new WeiSha.Data.Field("EGrp_IsUse");
///
/// -1 - 字段名:EGrp_Tax - 数据类型:Int32
///
public static WeiSha.Data.Field EGrp_Tax = new WeiSha.Data.Field("EGrp_Tax");
///
/// -1 - 字段名:EGrp_Intro - 数据类型:String
///
public static WeiSha.Data.Field EGrp_Intro = new WeiSha.Data.Field("EGrp_Intro");
///
/// -1 - 字段名:EGrp_IsSystem - 数据类型:Boolean
///
public static WeiSha.Data.Field EGrp_IsSystem = new WeiSha.Data.Field("EGrp_IsSystem");
///
/// 字段名: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");
}
}
}