diff --git a/Bootstrap.DataAccess/Dict.cs b/Bootstrap.DataAccess/Dict.cs index 46908bec..6cc87585 100644 --- a/Bootstrap.DataAccess/Dict.cs +++ b/Bootstrap.DataAccess/Dict.cs @@ -35,7 +35,8 @@ namespace Bootstrap.DataAccess { if (dict.Category.Length > 50) dict.Category = dict.Category.Substring(0, 50); if (dict.Name.Length > 50) dict.Name = dict.Name.Substring(0, 50); - if (dict.Code.Length > 50) dict.Code = dict.Code.Substring(0, 50); + + if (dict.Code.Length > 500) dict.Code = dict.Code.Substring(0, 500); DbManager.Create().Save(dict); return true;