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