mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-01 19:15:10 +08:00
Update sqlite
This commit is contained in:
parent
b01c0488b4
commit
a060025e11
@ -11,7 +11,10 @@ namespace SqlSugar
|
||||
{
|
||||
if (entityInfo.Columns.HasValue()&&entityInfo.IsDisabledUpdateAll==false)
|
||||
{
|
||||
Check.Exception(entityInfo.Columns.Where(it => it.IsPrimarykey).Count() > 1, "Use Code First ,The primary key must not exceed 1");
|
||||
if (entityInfo.Columns.Where(it => it.IsPrimarykey).Count() > 1)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var tableName = GetTableName(entityInfo);
|
||||
var dbColumns = this.Context.DbMaintenance.GetColumnInfosByTableName(tableName,false);
|
||||
|
Loading…
Reference in New Issue
Block a user