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 Stardust.Data.Configs
{
/// <summary>应用ä¾èµ–。应用å¯ä»¥å¼•ç”¨ä¾èµ–å¦ä¸€ä¸ªåº”用</summary>
[Serializable]
[DataObject]
[Description("应用ä¾èµ–。应用å¯ä»¥å¼•ç”¨ä¾èµ–å¦ä¸€ä¸ªåº”用")]
[BindIndex("IX_AppQuote_AppId", false, "AppId")]
[BindIndex("IX_AppQuote_TargetAppId", false, "TargetAppId")]
[BindTable("AppQuote", Description = "应用ä¾èµ–。应用å¯ä»¥å¼•ç”¨ä¾èµ–å¦ä¸€ä¸ªåº”用", ConnName = "ConfigCenter", DbType = DatabaseType.None)]
public partial class AppQuote
{
#region 属性
private Int32 _Id;
/// <summary>ç¼–å·</summary>
[DisplayName("ç¼–å·")]
[Description("ç¼–å·")]
[DataObjectField(true, true, false, 0)]
[BindColumn("Id", "ç¼–å·", "")]
public Int32 Id { get => _Id; set { if (OnPropertyChanging("Id", value)) { _Id = value; OnPropertyChanged("Id"); } } }
private Int32 _AppId;
/// <summary>应用。原始应用,该应用ä¾èµ–别人</summary>
[DisplayName("应用")]
[Description("应用。原始应用,该应用ä¾èµ–别人")]
[DataObjectField(false, false, false, 0)]
[BindColumn("AppId", "应用。原始应用,该应用ä¾èµ–别人", "")]
public Int32 AppId { get => _AppId; set { if (OnPropertyChanging("AppId", value)) { _AppId = value; OnPropertyChanged("AppId"); } } }
private Int32 _TargetAppId;
/// <summary>ç›®æ ‡åº”ç”¨ã€‚è¢«åŽŸå§‹åº”ç”¨ä¾èµ–的应用</summary>
[DisplayName("ç›®æ ‡åº”ç”¨")]
[Description("ç›®æ ‡åº”ç”¨ã€‚è¢«åŽŸå§‹åº”ç”¨ä¾èµ–的应用")]
[DataObjectField(false, false, false, 0)]
[BindColumn("TargetAppId", "ç›®æ ‡åº”ç”¨ã€‚è¢«åŽŸå§‹åº”ç”¨ä¾èµ–的应用", "")]
public Int32 TargetAppId { get => _TargetAppId; set { if (OnPropertyChanging("TargetAppId", value)) { _TargetAppId = value; OnPropertyChanged("TargetAppId"); } } }
private Int32 _CreateUserID;
/// <summary>创建者</summary>
[DisplayName("创建者")]
[Description("创建者")]
[DataObjectField(false, false, false, 0)]
[BindColumn("CreateUserID", "创建者", "")]
public Int32 CreateUserID { get => _CreateUserID; set { if (OnPropertyChanging("CreateUserID", value)) { _CreateUserID = value; OnPropertyChanged("CreateUserID"); } } }
private DateTime _CreateTime;
/// <summary>创建时间</summary>
[DisplayName("创建时间")]
[Description("创建时间")]
[DataObjectField(false, false, true, 0)]
[BindColumn("CreateTime", "创建时间", "")]
public DateTime CreateTime { get => _CreateTime; set { if (OnPropertyChanging("CreateTime", value)) { _CreateTime = value; OnPropertyChanged("CreateTime"); } } }
private String _CreateIP;
/// <summary>创建地å€</summary>
[DisplayName("创建地å€")]
[Description("创建地å€")]
[DataObjectField(false, false, true, 50)]
[BindColumn("CreateIP", "创建地å€", "")]
public String CreateIP { get => _CreateIP; set { if (OnPropertyChanging("CreateIP", value)) { _CreateIP = value; OnPropertyChanged("CreateIP"); } } }
#endregion
#region 获å–/设置 å—段值
/// <summary>获å–/设置 å—段值</summary>
/// <param name="name">å—段å</param>
/// <returns></returns>
public override Object this[String name]
{
get
{
switch (name)
{
case "Id": return _Id;
case "AppId": return _AppId;
case "TargetAppId": return _TargetAppId;
case "CreateUserID": return _CreateUserID;
case "CreateTime": return _CreateTime;
case "CreateIP": return _CreateIP;
default: return base[name];
}
}
set
{
switch (name)
{
case "Id": _Id = value.ToInt(); break;
case "AppId": _AppId = value.ToInt(); break;
case "TargetAppId": _TargetAppId = value.ToInt(); break;
case "CreateUserID": _CreateUserID = value.ToInt(); break;
case "CreateTime": _CreateTime = value.ToDateTime(); break;
case "CreateIP": _CreateIP = Convert.ToString(value); break;
default: base[name] = value; break;
}
}
}
#endregion
#region å—段å
/// <summary>å–得应用ä¾èµ–å—段信æ¯çš„å¿«æ·æ–¹å¼</summary>
public partial class _
{
/// <summary>ç¼–å·</summary>
public static readonly Field Id = FindByName("Id");
/// <summary>应用。原始应用,该应用ä¾èµ–别人</summary>
public static readonly Field AppId = FindByName("AppId");
/// <summary>ç›®æ ‡åº”ç”¨ã€‚è¢«åŽŸå§‹åº”ç”¨ä¾èµ–的应用</summary>
public static readonly Field TargetAppId = FindByName("TargetAppId");
/// <summary>创建者</summary>
public static readonly Field CreateUserID = FindByName("CreateUserID");
/// <summary>创建时间</summary>
public static readonly Field CreateTime = FindByName("CreateTime");
/// <summary>创建地å€</summary>
public static readonly Field CreateIP = FindByName("CreateIP");
static Field FindByName(String name) => Meta.Table.FindByName(name);
}
/// <summary>å–得应用ä¾èµ–å—段å称的快æ·æ–¹å¼</summary>
public partial class __
{
/// <summary>ç¼–å·</summary>
public const String Id = "Id";
/// <summary>应用。原始应用,该应用ä¾èµ–别人</summary>
public const String AppId = "AppId";
/// <summary>ç›®æ ‡åº”ç”¨ã€‚è¢«åŽŸå§‹åº”ç”¨ä¾èµ–的应用</summary>
public const String TargetAppId = "TargetAppId";
/// <summary>创建者</summary>
public const String CreateUserID = "CreateUserID";
/// <summary>创建时间</summary>
public const String CreateTime = "CreateTime";
/// <summary>创建地å€</summary>
public const String CreateIP = "CreateIP";
}
#endregion
}
}
|