This commit is contained in:
2881099
2020-12-07 20:37:59 +08:00
parent 87f2cba55f
commit 2434fa6cb9
23 changed files with 23 additions and 22 deletions

View File

@ -130,6 +130,7 @@ namespace FreeSql.Internal.CommonProvider
int _disposeCounter;
public void Dispose()
{
if (ResolveTransaction != null) return;
if (Interlocked.Increment(ref _disposeCounter) != 1) return;
try
{