mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 10:42:52 +08:00
- 优化 FreeSqlBuilder 处理 MaxLength 特性的容器处理;
This commit is contained in:
parent
d7877924a5
commit
46f290ca2b
@ -245,7 +245,7 @@ namespace FreeSql
|
|||||||
}
|
}
|
||||||
catch { }
|
catch { }
|
||||||
|
|
||||||
var maxlenAttr = attrs.Where(a => {
|
var maxlenAttr = attrs?.Where(a => {
|
||||||
return ((a as Attribute)?.TypeId as Type)?.Name == "MaxLengthAttribute";
|
return ((a as Attribute)?.TypeId as Type)?.Name == "MaxLengthAttribute";
|
||||||
}).FirstOrDefault();
|
}).FirstOrDefault();
|
||||||
if (maxlenAttr != null)
|
if (maxlenAttr != null)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user