- 增加 FreeSql.Generator Sqlite 数据库生成实体类;

- 增加 Sqlite DbFirst 实现;
This commit is contained in:
28810
2020-03-29 22:36:39 +08:00
parent 09343499c5
commit 9f2ffdce77
8 changed files with 398 additions and 17 deletions

View File

@ -73,7 +73,7 @@ public class RazorModel {
if (col.CsType != null)
{
var dbinfo = fsql.CodeFirst.GetDbInfo(col.CsType);
if (dbinfo != null && dbinfo.dbtypeFull.Replace("NOT NULL", "").Trim() != col.DbTypeTextFull)
if (dbinfo != null && string.Compare(dbinfo.dbtypeFull.Replace("NOT NULL", "").Trim(), col.DbTypeTextFull, true) != 0)
sb.Add("DbType = \"" + col.DbTypeTextFull + "\"");
if (col.IsPrimary)
sb.Add("IsPrimary = true");