mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-25 10:08:11 +08:00
Update pgsql
This commit is contained in:
parent
f1ac6f0a21
commit
b3b1965583
@ -237,6 +237,8 @@ namespace SqlSugar
|
|||||||
Check.Exception(whereColumns == null || whereColumns.Count() == 0, "where columns count=0 or need primary key");
|
Check.Exception(whereColumns == null || whereColumns.Count() == 0, "where columns count=0 or need primary key");
|
||||||
var isAuto = this.context.CurrentConnectionConfig.IsAutoCloseConnection;
|
var isAuto = this.context.CurrentConnectionConfig.IsAutoCloseConnection;
|
||||||
this.context.CurrentConnectionConfig.IsAutoCloseConnection = false;
|
this.context.CurrentConnectionConfig.IsAutoCloseConnection = false;
|
||||||
|
var old = this.context.Ado.IsDisableMasterSlaveSeparation;
|
||||||
|
this.context.Ado.IsDisableMasterSlaveSeparation = true;
|
||||||
DataTable dt = ToDdateTable(datas);
|
DataTable dt = ToDdateTable(datas);
|
||||||
IFastBuilder buider = GetBuider();
|
IFastBuilder buider = GetBuider();
|
||||||
buider.Context = context;
|
buider.Context = context;
|
||||||
@ -255,6 +257,7 @@ namespace SqlSugar
|
|||||||
this.context.CurrentConnectionConfig.IsAutoCloseConnection = isAuto;
|
this.context.CurrentConnectionConfig.IsAutoCloseConnection = isAuto;
|
||||||
buider.CloseDb();
|
buider.CloseDb();
|
||||||
End(datas, false, true);
|
End(datas, false, true);
|
||||||
|
this.context.Ado.IsDisableMasterSlaveSeparation = old;
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
|
Loading…
Reference in New Issue
Block a user