Browse Source

Sqlite Code First Bug

pull/12/MERGE
sunkaixuan 7 years ago
parent
commit
e09585aff9
  1. 2
      Src/Asp.Net/SqlSugar/Realization/Sqlite/CodeFirst/SqliteCodeFirst.cs

2
Src/Asp.Net/SqlSugar/Realization/Sqlite/CodeFirst/SqliteCodeFirst.cs

@ -15,7 +15,7 @@ namespace SqlSugar
List<DbColumnInfo> columns = new List<DbColumnInfo>(); List<DbColumnInfo> columns = new List<DbColumnInfo>();
if (entityInfo.Columns.IsValuable()) if (entityInfo.Columns.IsValuable())
{ {
foreach (var item in entityInfo.Columns) foreach (var item in entityInfo.Columns.Where(it => it.IsIgnore == false))
{ {
DbColumnInfo dbColumnInfo = this.EntityColumnToDbColumn(entityInfo, tableName, item); DbColumnInfo dbColumnInfo = this.EntityColumnToDbColumn(entityInfo, tableName, item);
columns.Add(dbColumnInfo); columns.Add(dbColumnInfo);

Loading…
Cancel
Save