mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-04-22 18:52:50 +08:00
- 优化 FreeSqlBuilder 处理 MaxLength 特性的容器处理;
This commit is contained in:
parent
d7877924a5
commit
46f290ca2b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user