- 修复 fsql.InsertOrUpdate 在同线程事务模式内使用的 bug #402;

This commit is contained in:
28810
2020-08-03 14:35:43 +08:00
parent 270085e50b
commit c7cd1cda3b
3 changed files with 157 additions and 188 deletions

View File

@ -214,6 +214,9 @@ namespace FreeSql.Internal.CommonProvider
var ss = SplitSourceByIdentityValueIsNull(_source);
try
{
if (_transaction == null)
this.WithTransaction(_orm.Ado.TransactionCurrentThread);
if (_transaction != null)
{
_source = ss.Item1;
@ -314,6 +317,9 @@ namespace FreeSql.Internal.CommonProvider
var ss = SplitSourceByIdentityValueIsNull(_source);
try
{
if (_transaction == null)
this.WithTransaction(_orm.Ado.TransactionCurrentThread);
if (_transaction != null)
{
_source = ss.Item1;