mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-15 23:13:42 +08:00
Insert ModelContext Bug
This commit is contained in:
parent
69b284da70
commit
0777f6357b
@ -28,6 +28,8 @@ namespace OrmTest.Demo
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
db.Insertable(new CMStudent() { Name="xx" }).ExecuteCommand();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -266,6 +266,7 @@ namespace SqlSugar
|
||||
List<DbColumnInfo> insertItem = new List<DbColumnInfo>();
|
||||
foreach (var column in EntityInfo.Columns)
|
||||
{
|
||||
if (column.IsIgnore || column.IsOnlyIgnoreInsert) continue;
|
||||
var columnInfo = new DbColumnInfo()
|
||||
{
|
||||
Value = column.PropertyInfo.GetValue(item, null),
|
||||
|
Loading…
Reference in New Issue
Block a user