Skip to content

Commit 46f290c

Browse files
2881028810
authored andcommitted
- 优化 FreeSqlBuilder 处理 MaxLength 特性的容器处理;
1 parent d787792 commit 46f290c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FreeSql/FreeSqlBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ public IFreeSql<TMark> Build<TMark>()
245245
}
246246
catch { }
247247

248-
var maxlenAttr = attrs.Where(a => {
248+
var maxlenAttr = attrs?.Where(a => {
249249
return ((a as Attribute)?.TypeId as Type)?.Name == "MaxLengthAttribute";
250250
}).FirstOrDefault();
251251
if (maxlenAttr != null)

0 commit comments

Comments
 (0)