mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 12:28:15 +08:00
- 优化 FreeSqlBuilder 处理 MaxLength 特性的容器处理;
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user