namespace Song.Entities {
using System;
///
/// 表名:LogForStudentOnline 主键列:Lso_ID
///
[SerializableAttribute()]
public partial class LogForStudentOnline : WeiSha.Data.Entity {
protected Int32 _Lso_ID;
protected Int32 _Org_ID;
protected Int32 _Ac_ID;
protected String _Ac_AccName;
protected String _Ac_Name;
protected String _Lso_UID;
protected DateTime _Lso_LoginDate;
protected DateTime _Lso_LoginTime;
protected DateTime _Lso_LastTime;
protected DateTime _Lso_LogoutTime;
protected DateTime _Lso_CrtTime;
protected Int32 _Lso_OnlineTime;
protected Int32 _Lso_BrowseTime;
protected String _Lso_IP;
protected String _Lso_Browser;
protected String _Lso_Platform;
protected String _Lso_OS;
public Int32 Lso_ID {
get {
return this._Lso_ID;
}
set {
this.OnPropertyValueChange(_.Lso_ID, _Lso_ID, value);
this._Lso_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 String Ac_Name {
get {
return this._Ac_Name;
}
set {
this.OnPropertyValueChange(_.Ac_Name, _Ac_Name, value);
this._Ac_Name = value;
}
}
public String Lso_UID {
get {
return this._Lso_UID;
}
set {
this.OnPropertyValueChange(_.Lso_UID, _Lso_UID, value);
this._Lso_UID = value;
}
}
public DateTime Lso_LoginDate {
get {
return this._Lso_LoginDate;
}
set {
this.OnPropertyValueChange(_.Lso_LoginDate, _Lso_LoginDate, value);
this._Lso_LoginDate = value;
}
}
public DateTime Lso_LoginTime {
get {
return this._Lso_LoginTime;
}
set {
this.OnPropertyValueChange(_.Lso_LoginTime, _Lso_LoginTime, value);
this._Lso_LoginTime = value;
}
}
public DateTime Lso_LastTime {
get {
return this._Lso_LastTime;
}
set {
this.OnPropertyValueChange(_.Lso_LastTime, _Lso_LastTime, value);
this._Lso_LastTime = value;
}
}
public DateTime Lso_LogoutTime {
get {
return this._Lso_LogoutTime;
}
set {
this.OnPropertyValueChange(_.Lso_LogoutTime, _Lso_LogoutTime, value);
this._Lso_LogoutTime = value;
}
}
public DateTime Lso_CrtTime {
get {
return this._Lso_CrtTime;
}
set {
this.OnPropertyValueChange(_.Lso_CrtTime, _Lso_CrtTime, value);
this._Lso_CrtTime = value;
}
}
public Int32 Lso_OnlineTime {
get {
return this._Lso_OnlineTime;
}
set {
this.OnPropertyValueChange(_.Lso_OnlineTime, _Lso_OnlineTime, value);
this._Lso_OnlineTime = value;
}
}
public Int32 Lso_BrowseTime {
get {
return this._Lso_BrowseTime;
}
set {
this.OnPropertyValueChange(_.Lso_BrowseTime, _Lso_BrowseTime, value);
this._Lso_BrowseTime = value;
}
}
public String Lso_IP {
get {
return this._Lso_IP;
}
set {
this.OnPropertyValueChange(_.Lso_IP, _Lso_IP, value);
this._Lso_IP = value;
}
}
public String Lso_Browser {
get {
return this._Lso_Browser;
}
set {
this.OnPropertyValueChange(_.Lso_Browser, _Lso_Browser, value);
this._Lso_Browser = value;
}
}
public String Lso_Platform {
get {
return this._Lso_Platform;
}
set {
this.OnPropertyValueChange(_.Lso_Platform, _Lso_Platform, value);
this._Lso_Platform = value;
}
}
public String Lso_OS {
get {
return this._Lso_OS;
}
set {
this.OnPropertyValueChange(_.Lso_OS, _Lso_OS, value);
this._Lso_OS = value;
}
}
///
/// 获取实体对应的表名
///
protected override WeiSha.Data.Table GetTable() {
return new WeiSha.Data.Table("LogForStudentOnline");
}
///
/// 获取实体中的标识列
///
protected override WeiSha.Data.Field GetIdentityField() {
return _.Lso_ID;
}
///
/// 获取实体中的主键列
///
protected override WeiSha.Data.Field[] GetPrimaryKeyFields() {
return new WeiSha.Data.Field[] {
_.Lso_ID};
}
///
/// 获取列信息
///
protected override WeiSha.Data.Field[] GetFields() {
return new WeiSha.Data.Field[] {
_.Lso_ID,
_.Org_ID,
_.Ac_ID,
_.Ac_AccName,
_.Ac_Name,
_.Lso_UID,
_.Lso_LoginDate,
_.Lso_LoginTime,
_.Lso_LastTime,
_.Lso_LogoutTime,
_.Lso_CrtTime,
_.Lso_OnlineTime,
_.Lso_BrowseTime,
_.Lso_IP,
_.Lso_Browser,
_.Lso_Platform,
_.Lso_OS};
}
///
/// 获取列数据
///
protected override object[] GetValues() {
return new object[] {
this._Lso_ID,
this._Org_ID,
this._Ac_ID,
this._Ac_AccName,
this._Ac_Name,
this._Lso_UID,
this._Lso_LoginDate,
this._Lso_LoginTime,
this._Lso_LastTime,
this._Lso_LogoutTime,
this._Lso_CrtTime,
this._Lso_OnlineTime,
this._Lso_BrowseTime,
this._Lso_IP,
this._Lso_Browser,
this._Lso_Platform,
this._Lso_OS};
}
///
/// 给当前实体赋值
///
protected override void SetValues(WeiSha.Data.IRowReader reader) {
if ((false == reader.IsDBNull(_.Lso_ID))) {
this._Lso_ID = reader.GetInt32(_.Lso_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(_.Ac_Name))) {
this._Ac_Name = reader.GetString(_.Ac_Name);
}
if ((false == reader.IsDBNull(_.Lso_UID))) {
this._Lso_UID = reader.GetString(_.Lso_UID);
}
if ((false == reader.IsDBNull(_.Lso_LoginDate))) {
this._Lso_LoginDate = reader.GetDateTime(_.Lso_LoginDate);
}
if ((false == reader.IsDBNull(_.Lso_LoginTime))) {
this._Lso_LoginTime = reader.GetDateTime(_.Lso_LoginTime);
}
if ((false == reader.IsDBNull(_.Lso_LastTime))) {
this._Lso_LastTime = reader.GetDateTime(_.Lso_LastTime);
}
if ((false == reader.IsDBNull(_.Lso_LogoutTime))) {
this._Lso_LogoutTime = reader.GetDateTime(_.Lso_LogoutTime);
}
if ((false == reader.IsDBNull(_.Lso_CrtTime))) {
this._Lso_CrtTime = reader.GetDateTime(_.Lso_CrtTime);
}
if ((false == reader.IsDBNull(_.Lso_OnlineTime))) {
this._Lso_OnlineTime = reader.GetInt32(_.Lso_OnlineTime);
}
if ((false == reader.IsDBNull(_.Lso_BrowseTime))) {
this._Lso_BrowseTime = reader.GetInt32(_.Lso_BrowseTime);
}
if ((false == reader.IsDBNull(_.Lso_IP))) {
this._Lso_IP = reader.GetString(_.Lso_IP);
}
if ((false == reader.IsDBNull(_.Lso_Browser))) {
this._Lso_Browser = reader.GetString(_.Lso_Browser);
}
if ((false == reader.IsDBNull(_.Lso_Platform))) {
this._Lso_Platform = reader.GetString(_.Lso_Platform);
}
if ((false == reader.IsDBNull(_.Lso_OS))) {
this._Lso_OS = reader.GetString(_.Lso_OS);
}
}
public override int GetHashCode() {
return base.GetHashCode();
}
public override bool Equals(object obj) {
if ((obj == null)) {
return false;
}
if ((false == typeof(LogForStudentOnline).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();
///
/// 字段名:Lso_ID - 数据类型:Int32
///
public static WeiSha.Data.Field Lso_ID = new WeiSha.Data.Field("Lso_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");
///
/// 字段名:Ac_Name - 数据类型:String
///
public static WeiSha.Data.Field Ac_Name = new WeiSha.Data.Field("Ac_Name");
///
/// 字段名:Lso_UID - 数据类型:String
///
public static WeiSha.Data.Field Lso_UID = new WeiSha.Data.Field("Lso_UID");
///
/// 字段名:Lso_LoginDate - 数据类型:DateTime
///
public static WeiSha.Data.Field Lso_LoginDate = new WeiSha.Data.Field("Lso_LoginDate");
///
/// 字段名:Lso_LoginTime - 数据类型:DateTime
///
public static WeiSha.Data.Field Lso_LoginTime = new WeiSha.Data.Field("Lso_LoginTime");
///
/// 字段名:Lso_LastTime - 数据类型:DateTime
///
public static WeiSha.Data.Field Lso_LastTime = new WeiSha.Data.Field("Lso_LastTime");
///
/// 字段名:Lso_LogoutTime - 数据类型:DateTime
///
public static WeiSha.Data.Field Lso_LogoutTime = new WeiSha.Data.Field("Lso_LogoutTime");
///
/// 字段名:Lso_CrtTime - 数据类型:DateTime
///
public static WeiSha.Data.Field Lso_CrtTime = new WeiSha.Data.Field("Lso_CrtTime");
///
/// 字段名:Lso_OnlineTime - 数据类型:Int32
///
public static WeiSha.Data.Field Lso_OnlineTime = new WeiSha.Data.Field("Lso_OnlineTime");
///
/// 字段名:Lso_BrowseTime - 数据类型:Int32
///
public static WeiSha.Data.Field Lso_BrowseTime = new WeiSha.Data.Field("Lso_BrowseTime");
///
/// 字段名:Lso_IP - 数据类型:String
///
public static WeiSha.Data.Field Lso_IP = new WeiSha.Data.Field("Lso_IP");
///
/// 字段名:Lso_Browser - 数据类型:String
///
public static WeiSha.Data.Field Lso_Browser = new WeiSha.Data.Field("Lso_Browser");
///
/// 字段名:Lso_Platform - 数据类型:String
///
public static WeiSha.Data.Field Lso_Platform = new WeiSha.Data.Field("Lso_Platform");
///
/// 字段名:Lso_OS - 数据类型:String
///
public static WeiSha.Data.Field Lso_OS = new WeiSha.Data.Field("Lso_OS");
}
}
}