namespace Song.Entities {
using System;
///
/// 表名:DownloadType 主键列:Dty_Id
///
[SerializableAttribute()]
public partial class DownloadType : WeiSha.Data.Entity {
protected Int32 _Dty_Id;
protected String _Dty_Name;
protected String _Dty_Intro;
protected String _Dty_Details;
protected Boolean _Dty_IsUse;
protected Int32? _Dty_Tax;
protected Int32? _Org_Id;
protected String _Org_Name;
///
/// -1
///
public Int32 Dty_Id {
get {
return this._Dty_Id;
}
set {
this.OnPropertyValueChange(_.Dty_Id, _Dty_Id, value);
this._Dty_Id = value;
}
}
///
/// -1
///
public String Dty_Name {
get {
return this._Dty_Name;
}
set {
this.OnPropertyValueChange(_.Dty_Name, _Dty_Name, value);
this._Dty_Name = value;
}
}
///
/// -1
///
public String Dty_Intro {
get {
return this._Dty_Intro;
}
set {
this.OnPropertyValueChange(_.Dty_Intro, _Dty_Intro, value);
this._Dty_Intro = value;
}
}
///
/// -1
///
public String Dty_Details {
get {
return this._Dty_Details;
}
set {
this.OnPropertyValueChange(_.Dty_Details, _Dty_Details, value);
this._Dty_Details = value;
}
}
///
/// -1
///
public Boolean Dty_IsUse {
get {
return this._Dty_IsUse;
}
set {
this.OnPropertyValueChange(_.Dty_IsUse, _Dty_IsUse, value);
this._Dty_IsUse = value;
}
}
///
/// -1
///
public Int32? Dty_Tax {
get {
return this._Dty_Tax;
}
set {
this.OnPropertyValueChange(_.Dty_Tax, _Dty_Tax, value);
this._Dty_Tax = 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("DownloadType");
}
///
/// 获取实体中的标识列
///
protected override WeiSha.Data.Field GetIdentityField() {
return _.Dty_Id;
}
///
/// 获取实体中的主键列
///
protected override WeiSha.Data.Field[] GetPrimaryKeyFields() {
return new WeiSha.Data.Field[] {
_.Dty_Id};
}
///
/// 获取列信息
///
protected override WeiSha.Data.Field[] GetFields() {
return new WeiSha.Data.Field[] {
_.Dty_Id,
_.Dty_Name,
_.Dty_Intro,
_.Dty_Details,
_.Dty_IsUse,
_.Dty_Tax,
_.Org_Id,
_.Org_Name};
}
///
/// 获取列数据
///
protected override object[] GetValues() {
return new object[] {
this._Dty_Id,
this._Dty_Name,
this._Dty_Intro,
this._Dty_Details,
this._Dty_IsUse,
this._Dty_Tax,
this._Org_Id,
this._Org_Name};
}
///
/// 给当前实体赋值
///
protected override void SetValues(WeiSha.Data.IRowReader reader) {
if ((false == reader.IsDBNull(_.Dty_Id))) {
this._Dty_Id = reader.GetInt32(_.Dty_Id);
}
if ((false == reader.IsDBNull(_.Dty_Name))) {
this._Dty_Name = reader.GetString(_.Dty_Name);
}
if ((false == reader.IsDBNull(_.Dty_Intro))) {
this._Dty_Intro = reader.GetString(_.Dty_Intro);
}
if ((false == reader.IsDBNull(_.Dty_Details))) {
this._Dty_Details = reader.GetString(_.Dty_Details);
}
if ((false == reader.IsDBNull(_.Dty_IsUse))) {
this._Dty_IsUse = reader.GetBoolean(_.Dty_IsUse);
}
if ((false == reader.IsDBNull(_.Dty_Tax))) {
this._Dty_Tax = reader.GetInt32(_.Dty_Tax);
}
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(DownloadType).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 - 字段名:Dty_Id - 数据类型:Int32
///
public static WeiSha.Data.Field Dty_Id = new WeiSha.Data.Field("Dty_Id");
///
/// -1 - 字段名:Dty_Name - 数据类型:String
///
public static WeiSha.Data.Field Dty_Name = new WeiSha.Data.Field("Dty_Name");
///
/// -1 - 字段名:Dty_Intro - 数据类型:String
///
public static WeiSha.Data.Field Dty_Intro = new WeiSha.Data.Field("Dty_Intro");
///
/// -1 - 字段名:Dty_Details - 数据类型:String
///
public static WeiSha.Data.Field Dty_Details = new WeiSha.Data.Field("Dty_Details");
///
/// -1 - 字段名:Dty_IsUse - 数据类型:Boolean
///
public static WeiSha.Data.Field Dty_IsUse = new WeiSha.Data.Field("Dty_IsUse");
///
/// -1 - 字段名:Dty_Tax - 数据类型:Int32(可空)
///
public static WeiSha.Data.Field Dty_Tax = new WeiSha.Data.Field("Dty_Tax");
///
/// 字段名: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");
}
}
}