Skip to content

Commit 9b93200

Browse files
2881028810
authored andcommitted
- 调整 FreeSql.Generator 移除 CanInsert = false 特性生成;
1 parent 2d2a0e2 commit 9b93200

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Extensions/FreeSql.Generator/RazorModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@ public string GetColumnAttribute(DbColumnInfo col, bool isInsertValueSql = false
196196
if (defval != null)
197197
{
198198
sb.Add("InsertValueSql = \"" + defval.Replace("\"", "\\\"") + "\"");
199-
sb.Add("CanInsert = false");
199+
//sb.Add("CanInsert = false");
200200
}
201201
}
202-
else
203-
sb.Add("CanInsert = false");
202+
//else
203+
//sb.Add("CanInsert = false");
204204
}
205205
}
206206
if (sb.Any() == false) return null;

0 commit comments

Comments
 (0)