using System; using System.Collections.Generic; using System.ComponentModel; using System.Runtime.Serialization; using System.Web.Script.Serialization; using System.Xml.Serialization; using XCode; using XCode.Configuration; using XCode.DataAccessLayer; namespace XCode.Membership { /// 用户统计 [Serializable] [DataObject] [Description("用户统计")] [BindIndex("IU_UserStat_Date", true, "Date")] [BindTable("UserStat", Description = "用户统计", ConnName = "Membership", DbType = DatabaseType.None)] public partial class UserStat { #region 属性 private Int32 _ID; /// 编号 [DisplayName("编号")] [Description("编号")] [DataObjectField(true, true, false, 0)] [BindColumn("ID", "编号", "")] public Int32 ID { get => _ID; set { if (OnPropertyChanging("ID", value)) { _ID = value; OnPropertyChanged("ID"); } } } private DateTime _Date; /// 统计日期 [DisplayName("统计日期")] [Description("统计日期")] [DataObjectField(false, false, true, 0)] [BindColumn("Date", "统计日期", "")] public DateTime Date { get => _Date; set { if (OnPropertyChanging("Date", value)) { _Date = value; OnPropertyChanged("Date"); } } } private Int32 _Total; /// 总数。总用户数 [DisplayName("总数")] [Description("总数。总用户数")] [DataObjectField(false, false, false, 0)] [BindColumn("Total", "总数。总用户数", "")] public Int32 Total { get => _Total; set { if (OnPropertyChanging("Total", value)) { _Total = value; OnPropertyChanged("Total"); } } } private Int32 _MaxOnline; /// 最大在线。最大在线用户数 [DisplayName("最大在线")] [Description("最大在线。最大在线用户数")] [DataObjectField(false, false, false, 0)] [BindColumn("MaxOnline", "最大在线。最大在线用户数", "")] public Int32 MaxOnline { get => _MaxOnline; set { if (OnPropertyChanging("MaxOnline", value)) { _MaxOnline = value; OnPropertyChanged("MaxOnline"); } } } private Int32 _Actives; /// 活跃。今天活跃用户数 [DisplayName("活跃")] [Description("活跃。今天活跃用户数")] [DataObjectField(false, false, false, 0)] [BindColumn("Actives", "活跃。今天活跃用户数", "")] public Int32 Actives { get => _Actives; set { if (OnPropertyChanging("Actives", value)) { _Actives = value; OnPropertyChanged("Actives"); } } } private Int32 _ActivesT7; /// 7天活跃。7天活跃用户数 [DisplayName("7天活跃")] [Description("7天活跃。7天活跃用户数")] [DataObjectField(false, false, false, 0)] [BindColumn("ActivesT7", "7天活跃。7天活跃用户数", "")] public Int32 ActivesT7 { get => _ActivesT7; set { if (OnPropertyChanging("ActivesT7", value)) { _ActivesT7 = value; OnPropertyChanged("ActivesT7"); } } } private Int32 _ActivesT30; /// 30天活跃。30天活跃用户数 [DisplayName("30天活跃")] [Description("30天活跃。30天活跃用户数")] [DataObjectField(false, false, false, 0)] [BindColumn("ActivesT30", "30天活跃。30天活跃用户数", "")] public Int32 ActivesT30 { get => _ActivesT30; set { if (OnPropertyChanging("ActivesT30", value)) { _ActivesT30 = value; OnPropertyChanged("ActivesT30"); } } } private Int32 _News; /// 新用户。今天注册新用户数 [DisplayName("新用户")] [Description("新用户。今天注册新用户数")] [DataObjectField(false, false, false, 0)] [BindColumn("News", "新用户。今天注册新用户数", "")] public Int32 News { get => _News; set { if (OnPropertyChanging("News", value)) { _News = value; OnPropertyChanged("News"); } } } private Int32 _NewsT7; /// 7天注册。7天内注册新用户数 [DisplayName("7天注册")] [Description("7天注册。7天内注册新用户数")] [DataObjectField(false, false, false, 0)] [BindColumn("NewsT7", "7天注册。7天内注册新用户数", "")] public Int32 NewsT7 { get => _NewsT7; set { if (OnPropertyChanging("NewsT7", value)) { _NewsT7 = value; OnPropertyChanged("NewsT7"); } } } private Int32 _NewsT30; /// 30天注册。30天注册新用户数 [DisplayName("30天注册")] [Description("30天注册。30天注册新用户数")] [DataObjectField(false, false, false, 0)] [BindColumn("NewsT30", "30天注册。30天注册新用户数", "")] public Int32 NewsT30 { get => _NewsT30; set { if (OnPropertyChanging("NewsT30", value)) { _NewsT30 = value; OnPropertyChanged("NewsT30"); } } } private Int32 _OnlineTime; /// 在线时间。累计在线总时间,秒 [DisplayName("在线时间")] [Description("在线时间。累计在线总时间,秒")] [DataObjectField(false, false, false, 0)] [BindColumn("OnlineTime", "在线时间。累计在线总时间,秒", "")] public Int32 OnlineTime { get => _OnlineTime; set { if (OnPropertyChanging("OnlineTime", value)) { _OnlineTime = value; OnPropertyChanged("OnlineTime"); } } } private DateTime _CreateTime; /// 创建时间 [DisplayName("创建时间")] [Description("创建时间")] [DataObjectField(false, false, false, 0)] [BindColumn("CreateTime", "创建时间", "")] public DateTime CreateTime { get => _CreateTime; set { if (OnPropertyChanging("CreateTime", value)) { _CreateTime = value; OnPropertyChanged("CreateTime"); } } } private DateTime _UpdateTime; /// 更新时间 [DisplayName("更新时间")] [Description("更新时间")] [DataObjectField(false, false, false, 0)] [BindColumn("UpdateTime", "更新时间", "")] public DateTime UpdateTime { get => _UpdateTime; set { if (OnPropertyChanging("UpdateTime", value)) { _UpdateTime = value; OnPropertyChanged("UpdateTime"); } } } private String _Remark; /// 详细信息 [DisplayName("详细信息")] [Description("详细信息")] [DataObjectField(false, false, true, 1000)] [BindColumn("Remark", "详细信息", "")] public String Remark { get => _Remark; set { if (OnPropertyChanging("Remark", value)) { _Remark = value; OnPropertyChanged("Remark"); } } } #endregion #region 获取/设置 字段值 /// 获取/设置 字段值 /// 字段名 /// public override Object this[String name] { get { switch (name) { case "ID": return _ID; case "Date": return _Date; case "Total": return _Total; case "MaxOnline": return _MaxOnline; case "Actives": return _Actives; case "ActivesT7": return _ActivesT7; case "ActivesT30": return _ActivesT30; case "News": return _News; case "NewsT7": return _NewsT7; case "NewsT30": return _NewsT30; case "OnlineTime": return _OnlineTime; case "CreateTime": return _CreateTime; case "UpdateTime": return _UpdateTime; case "Remark": return _Remark; default: return base[name]; } } set { switch (name) { case "ID": _ID = value.ToInt(); break; case "Date": _Date = value.ToDateTime(); break; case "Total": _Total = value.ToInt(); break; case "MaxOnline": _MaxOnline = value.ToInt(); break; case "Actives": _Actives = value.ToInt(); break; case "ActivesT7": _ActivesT7 = value.ToInt(); break; case "ActivesT30": _ActivesT30 = value.ToInt(); break; case "News": _News = value.ToInt(); break; case "NewsT7": _NewsT7 = value.ToInt(); break; case "NewsT30": _NewsT30 = value.ToInt(); break; case "OnlineTime": _OnlineTime = value.ToInt(); break; case "CreateTime": _CreateTime = value.ToDateTime(); break; case "UpdateTime": _UpdateTime = value.ToDateTime(); break; case "Remark": _Remark = Convert.ToString(value); break; default: base[name] = value; break; } } } #endregion #region 字段名 /// 取得用户统计字段信息的快捷方式 public partial class _ { /// 编号 public static readonly Field ID = FindByName("ID"); /// 统计日期 public static readonly Field Date = FindByName("Date"); /// 总数。总用户数 public static readonly Field Total = FindByName("Total"); /// 最大在线。最大在线用户数 public static readonly Field MaxOnline = FindByName("MaxOnline"); /// 活跃。今天活跃用户数 public static readonly Field Actives = FindByName("Actives"); /// 7天活跃。7天活跃用户数 public static readonly Field ActivesT7 = FindByName("ActivesT7"); /// 30天活跃。30天活跃用户数 public static readonly Field ActivesT30 = FindByName("ActivesT30"); /// 新用户。今天注册新用户数 public static readonly Field News = FindByName("News"); /// 7天注册。7天内注册新用户数 public static readonly Field NewsT7 = FindByName("NewsT7"); /// 30天注册。30天注册新用户数 public static readonly Field NewsT30 = FindByName("NewsT30"); /// 在线时间。累计在线总时间,秒 public static readonly Field OnlineTime = FindByName("OnlineTime"); /// 创建时间 public static readonly Field CreateTime = FindByName("CreateTime"); /// 更新时间 public static readonly Field UpdateTime = FindByName("UpdateTime"); /// 详细信息 public static readonly Field Remark = FindByName("Remark"); static Field FindByName(String name) => Meta.Table.FindByName(name); } /// 取得用户统计字段名称的快捷方式 public partial class __ { /// 编号 public const String ID = "ID"; /// 统计日期 public const String Date = "Date"; /// 总数。总用户数 public const String Total = "Total"; /// 最大在线。最大在线用户数 public const String MaxOnline = "MaxOnline"; /// 活跃。今天活跃用户数 public const String Actives = "Actives"; /// 7天活跃。7天活跃用户数 public const String ActivesT7 = "ActivesT7"; /// 30天活跃。30天活跃用户数 public const String ActivesT30 = "ActivesT30"; /// 新用户。今天注册新用户数 public const String News = "News"; /// 7天注册。7天内注册新用户数 public const String NewsT7 = "NewsT7"; /// 30天注册。30天注册新用户数 public const String NewsT30 = "NewsT30"; /// 在线时间。累计在线总时间,秒 public const String OnlineTime = "OnlineTime"; /// 创建时间 public const String CreateTime = "CreateTime"; /// 更新时间 public const String UpdateTime = "UpdateTime"; /// 详细信息 public const String Remark = "Remark"; } #endregion } }