Skip to content

Commit

Permalink
- 调整 FreeSql.Generator 移除 CanInsert = false 特性生成;
Browse files Browse the repository at this point in the history
  • Loading branch information
28810 authored and 28810 committed Sep 23, 2020
1 parent 2d2a0e2 commit 9b93200
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Extensions/FreeSql.Generator/RazorModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,11 @@ public string GetColumnAttribute(DbColumnInfo col, bool isInsertValueSql = false
if (defval != null)
{
sb.Add("InsertValueSql = \"" + defval.Replace("\"", "\\\"") + "\"");
sb.Add("CanInsert = false");
//sb.Add("CanInsert = false");
}
}
else
sb.Add("CanInsert = false");
//else
//sb.Add("CanInsert = false");
}
}
if (sb.Any() == false) return null;
Expand Down

0 comments on commit 9b93200

Please sign in to comment.