- 优化 FreeSqlBuilder 处理 MaxLength 特性的容器处理;

This commit is contained in:
28810 2019-10-16 15:03:30 +08:00
parent d7877924a5
commit 46f290ca2b

View File

@ -245,7 +245,7 @@ namespace FreeSql
}
catch { }
var maxlenAttr = attrs.Where(a => {
var maxlenAttr = attrs?.Where(a => {
return ((a as Attribute)?.TypeId as Type)?.Name == "MaxLengthAttribute";
}).FirstOrDefault();
if (maxlenAttr != null)