From 87204a6f6cbb04addba179a10dea48e4bbd0b3f0 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sun, 25 Jun 2017 06:48:41 +0800 Subject: [PATCH] Code First Update --- .../SqlSugar/Abstract/CodeFirstProvider/CodeFirstProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Asp.Net/SqlSugar/Abstract/CodeFirstProvider/CodeFirstProvider.cs b/Src/Asp.Net/SqlSugar/Abstract/CodeFirstProvider/CodeFirstProvider.cs index 2c17ec836..dad5cd69f 100644 --- a/Src/Asp.Net/SqlSugar/Abstract/CodeFirstProvider/CodeFirstProvider.cs +++ b/Src/Asp.Net/SqlSugar/Abstract/CodeFirstProvider/CodeFirstProvider.cs @@ -78,7 +78,7 @@ namespace SqlSugar List columns = new List(); if (entityInfo.Columns.IsValuable()) { - foreach (var item in entityInfo.Columns) + foreach (var item in entityInfo.Columns.Where(it=>it.IsIgnore==false)) { DbColumnInfo dbColumnInfo = EntityColumnToDbColumn(entityInfo, tableName, item); columns.Add(dbColumnInfo);