Insertable count=0 AddQueue BUG

This commit is contained in:
sunkaixuna
2021-05-15 22:43:57 +08:00
parent cc7cee831e
commit 3f5ce11d18

View File

@@ -35,8 +35,11 @@ namespace SqlSugar
#region Core #region Core
public void AddQueue() public void AddQueue()
{ {
var sqlObj = this.ToSql(); if (this.InsertObjs!=null&&this.InsertObjs.Length > 0&& this.InsertObjs[0]!=null)
this.Context.Queues.Add(sqlObj.Key, sqlObj.Value); {
var sqlObj = this.ToSql();
this.Context.Queues.Add(sqlObj.Key, sqlObj.Value);
}
} }
public virtual int ExecuteCommand() public virtual int ExecuteCommand()
{ {