完善伪静态链接
This commit is contained in:
+16
-16
@@ -21,7 +21,7 @@ namespace COMCMS.Core
|
||||
[Description("编号")]
|
||||
[DataObjectField(true, true, false, 0)]
|
||||
[BindColumn("Id", "编号", "")]
|
||||
public Int32 Id { get { return _Id; } set { if (OnPropertyChanging(__.Id, value)) { _Id = value; OnPropertyChanged(__.Id); } } }
|
||||
public Int32 Id { get => _Id; set { if (OnPropertyChanging(__.Id, value)) { _Id = value; OnPropertyChanged(__.Id); } } }
|
||||
|
||||
private String _EventKey;
|
||||
/// <summary>事件key</summary>
|
||||
@@ -29,7 +29,7 @@ namespace COMCMS.Core
|
||||
[Description("事件key")]
|
||||
[DataObjectField(false, false, true, 50)]
|
||||
[BindColumn("EventKey", "事件key", "", Master = true)]
|
||||
public String EventKey { get { return _EventKey; } set { if (OnPropertyChanging(__.EventKey, value)) { _EventKey = value; OnPropertyChanged(__.EventKey); } } }
|
||||
public String EventKey { get => _EventKey; set { if (OnPropertyChanging(__.EventKey, value)) { _EventKey = value; OnPropertyChanged(__.EventKey); } } }
|
||||
|
||||
private String _EventName;
|
||||
/// <summary>事件名称</summary>
|
||||
@@ -37,7 +37,7 @@ namespace COMCMS.Core
|
||||
[Description("事件名称")]
|
||||
[DataObjectField(false, false, true, 50)]
|
||||
[BindColumn("EventName", "事件名称", "")]
|
||||
public String EventName { get { return _EventName; } set { if (OnPropertyChanging(__.EventName, value)) { _EventName = value; OnPropertyChanged(__.EventName); } } }
|
||||
public String EventName { get => _EventName; set { if (OnPropertyChanging(__.EventName, value)) { _EventName = value; OnPropertyChanged(__.EventName); } } }
|
||||
|
||||
private Int32 _IsDisable;
|
||||
/// <summary>是否禁用</summary>
|
||||
@@ -45,7 +45,7 @@ namespace COMCMS.Core
|
||||
[Description("是否禁用")]
|
||||
[DataObjectField(false, false, false, 0)]
|
||||
[BindColumn("IsDisable", "是否禁用", "")]
|
||||
public Int32 IsDisable { get { return _IsDisable; } set { if (OnPropertyChanging(__.IsDisable, value)) { _IsDisable = value; OnPropertyChanged(__.IsDisable); } } }
|
||||
public Int32 IsDisable { get => _IsDisable; set { if (OnPropertyChanging(__.IsDisable, value)) { _IsDisable = value; OnPropertyChanged(__.IsDisable); } } }
|
||||
|
||||
private Int32 _Rank;
|
||||
/// <summary>排序</summary>
|
||||
@@ -53,7 +53,7 @@ namespace COMCMS.Core
|
||||
[Description("排序")]
|
||||
[DataObjectField(false, false, false, 0)]
|
||||
[BindColumn("Rank", "排序", "")]
|
||||
public Int32 Rank { get { return _Rank; } set { if (OnPropertyChanging(__.Rank, value)) { _Rank = value; OnPropertyChanged(__.Rank); } } }
|
||||
public Int32 Rank { get => _Rank; set { if (OnPropertyChanging(__.Rank, value)) { _Rank = value; OnPropertyChanged(__.Rank); } } }
|
||||
#endregion
|
||||
|
||||
#region 获取/设置 字段值
|
||||
@@ -66,11 +66,11 @@ namespace COMCMS.Core
|
||||
{
|
||||
switch (name)
|
||||
{
|
||||
case __.Id : return _Id;
|
||||
case __.EventKey : return _EventKey;
|
||||
case __.EventName : return _EventName;
|
||||
case __.IsDisable : return _IsDisable;
|
||||
case __.Rank : return _Rank;
|
||||
case __.Id: return _Id;
|
||||
case __.EventKey: return _EventKey;
|
||||
case __.EventName: return _EventName;
|
||||
case __.IsDisable: return _IsDisable;
|
||||
case __.Rank: return _Rank;
|
||||
default: return base[name];
|
||||
}
|
||||
}
|
||||
@@ -78,11 +78,11 @@ namespace COMCMS.Core
|
||||
{
|
||||
switch (name)
|
||||
{
|
||||
case __.Id : _Id = value.ToInt(); break;
|
||||
case __.EventKey : _EventKey = Convert.ToString(value); break;
|
||||
case __.EventName : _EventName = Convert.ToString(value); break;
|
||||
case __.IsDisable : _IsDisable = value.ToInt(); break;
|
||||
case __.Rank : _Rank = value.ToInt(); break;
|
||||
case __.Id: _Id = value.ToInt(); break;
|
||||
case __.EventKey: _EventKey = Convert.ToString(value); break;
|
||||
case __.EventName: _EventName = Convert.ToString(value); break;
|
||||
case __.IsDisable: _IsDisable = value.ToInt(); break;
|
||||
case __.Rank: _Rank = value.ToInt(); break;
|
||||
default: base[name] = value; break;
|
||||
}
|
||||
}
|
||||
@@ -108,7 +108,7 @@ namespace COMCMS.Core
|
||||
/// <summary>排序</summary>
|
||||
public static readonly Field Rank = FindByName(__.Rank);
|
||||
|
||||
static Field FindByName(String name) { return Meta.Table.FindByName(name); }
|
||||
static Field FindByName(String name) => Meta.Table.FindByName(name);
|
||||
}
|
||||
|
||||
/// <summary>取得目标事件字段名称的快捷方式</summary>
|
||||
|
||||
Reference in New Issue
Block a user