mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
Update sqlite
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user