diff --git a/NewLife.Cube/Entity/Cube.htm b/NewLife.Cube/Entity/Cube.htm index 6bad1bc4..4136c553 100644 --- a/NewLife.Cube/Entity/Cube.htm +++ b/NewLife.Cube/Entity/Cube.htm @@ -1144,7 +1144,7 @@

用户在线(UserOnline)

Page 页面 String - 50 + 200 diff --git a/NewLife.Cube/Entity/Cube.xml b/NewLife.Cube/Entity/Cube.xml index ecd1289b..dd2de04f 100644 --- a/NewLife.Cube/Entity/Cube.xml +++ b/NewLife.Cube/Entity/Cube.xml @@ -169,7 +169,7 @@ - + diff --git a/NewLife.Cube/Entity/make.bat b/NewLife.Cube/Entity/xcodetool.bat similarity index 100% rename from NewLife.Cube/Entity/make.bat rename to NewLife.Cube/Entity/xcodetool.bat diff --git a/NewLife.Cube/Entity/xcodetool.exe b/NewLife.Cube/Entity/xcodetool.exe index cf18b64b..a69ad0d1 100644 Binary files a/NewLife.Cube/Entity/xcodetool.exe and b/NewLife.Cube/Entity/xcodetool.exe differ diff --git "a/NewLife.Cube/Entity/\347\224\250\346\210\267\345\234\250\347\272\277.Biz.cs" "b/NewLife.Cube/Entity/\347\224\250\346\210\267\345\234\250\347\272\277.Biz.cs" index 650fe6e8..57a74810 100644 --- "a/NewLife.Cube/Entity/\347\224\250\346\210\267\345\234\250\347\272\277.Biz.cs" +++ "b/NewLife.Cube/Entity/\347\224\250\346\210\267\345\234\250\347\272\277.Biz.cs" @@ -33,28 +33,29 @@ public override void Valid(Boolean isNew) if (!HasDirty) return; // 截取长度 - CutField(_.Status, _.Page, _.Platform, _.OS, _.Device, _.Brower, _.NetType); + //CutField(_.Status, _.Page, _.Platform, _.OS, _.Device, _.Brower, _.NetType); + this.TrimExtraLong(__.Status, __.Page, __.Platform, __.OS, __.Device, __.Brower, __.NetType); // 建议先调用基类方法,基类方法会做一些统一处理 base.Valid(isNew); } - void CutField(params FieldItem[] fields) - { - foreach (var field in fields) - { - var len = field.Length; - if (len > 0 && field.Type == typeof(String)) - { - var str = this[field.Name] as String; - if (!str.IsNullOrEmpty() && str.Length > len) - { - str = str[..len]; - SetItem(field.Name, str); - } - } - } - } + //void CutField(params FieldItem[] fields) + //{ + // foreach (var field in fields) + // { + // var len = field.Length; + // if (len > 0 && field.Type == typeof(String)) + // { + // var str = this[field.Name] as String; + // if (!str.IsNullOrEmpty() && str.Length > len) + // { + // str = str[..len]; + // SetItem(field.Name, str); + // } + // } + // } + //} #endregion #region 扩展属性 diff --git "a/NewLife.Cube/Entity/\347\224\250\346\210\267\345\234\250\347\272\277.cs" "b/NewLife.Cube/Entity/\347\224\250\346\210\267\345\234\250\347\272\277.cs" index 422931e2..e13643f3 100644 --- "a/NewLife.Cube/Entity/\347\224\250\346\210\267\345\234\250\347\272\277.cs" +++ "b/NewLife.Cube/Entity/\347\224\250\346\210\267\345\234\250\347\272\277.cs" @@ -76,7 +76,7 @@ public partial class UserOnline /// 页面 [DisplayName("页面")] [Description("页面")] - [DataObjectField(false, false, true, 50)] + [DataObjectField(false, false, true, 200)] [BindColumn("Page", "页面", "")] public String Page { get => _Page; set { if (OnPropertyChanging("Page", value)) { _Page = value; OnPropertyChanged("Page"); } } }