mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-26 21:38:32 +08:00
Insertable count=0 AddQueue BUG
This commit is contained in:
@@ -34,10 +34,13 @@ namespace SqlSugar
|
||||
|
||||
#region Core
|
||||
public void AddQueue()
|
||||
{
|
||||
if (this.InsertObjs!=null&&this.InsertObjs.Length > 0&& this.InsertObjs[0]!=null)
|
||||
{
|
||||
var sqlObj = this.ToSql();
|
||||
this.Context.Queues.Add(sqlObj.Key, sqlObj.Value);
|
||||
}
|
||||
}
|
||||
public virtual int ExecuteCommand()
|
||||
{
|
||||
if (this.InsertObjs.Count() == 1 && this.InsertObjs.First() == null)
|
||||
|
||||
Reference in New Issue
Block a user