File tree 2 files changed +5
-5
lines changed
src/Thinktecture.EntityFrameworkCore.SqlServer/EntityFrameworkCore/TempTables
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
<PropertyGroup >
4
4
<Copyright >(c) $([System.DateTime]::Now.Year), Pawel Gerr. All rights reserved.</Copyright >
5
- <VersionPrefix >9.2.0 </VersionPrefix >
6
- <Authors >Pawel Gerr</Authors >
5
+ <VersionPrefix >9.2.1 </VersionPrefix >
6
+ <Authors >Pawel Gerr</Authors >
7
7
<GenerateDocumentationFile >true</GenerateDocumentationFile >
8
8
<PackageProjectUrl >https://dev.azure.com/pawelgerr/Thinktecture.EntityFrameworkCore</PackageProjectUrl >
9
9
<PackageIcon >icon.png</PackageIcon >
12
12
<RepositoryUrl >https://pawelgerr@dev.azure.com/pawelgerr/Thinktecture.EntityFrameworkCore/_git/Thinktecture.EntityFrameworkCore</RepositoryUrl >
13
13
<GenerateAssemblyCompanyAttribute >false</GenerateAssemblyCompanyAttribute >
14
14
<RootNamespace >Thinktecture</RootNamespace >
15
- <TargetFrameworks >net8.0;net9.0;</TargetFrameworks >
15
+ <TargetFrameworks >net8.0;net9.0;</TargetFrameworks >
16
16
<LangVersion >13.0</LangVersion >
17
17
<Nullable >enable</Nullable >
18
18
<NoWarn >$(NoWarn);CA1303;MSB3884;</NoWarn >
22
22
<VSTestLogger >trx%3bLogFileName=$(MSBuildProjectName).trx</VSTestLogger >
23
23
<VSTestResultsDirectory >$(MSBuildThisFileDirectory)test-results/$(TargetFramework)</VSTestResultsDirectory >
24
24
</PropertyGroup >
25
-
25
+
26
26
<ItemGroup >
27
27
<Using Include =" Microsoft.EntityFrameworkCore" />
28
28
</ItemGroup >
Original file line number Diff line number Diff line change 1
1
using System . Data ;
2
2
using System . Data . Common ;
3
- using System . Diagnostics . CodeAnalysis ;
4
3
using Microsoft . EntityFrameworkCore . Diagnostics ;
5
4
using Microsoft . EntityFrameworkCore . Infrastructure ;
6
5
using Microsoft . EntityFrameworkCore . Storage ;
@@ -121,6 +120,7 @@ public async ValueTask DisposeAsync()
121
120
return null ;
122
121
123
122
command = connection . CreateCommand ( ) ;
123
+ command . Transaction = _database . CurrentTransaction ? . GetDbTransaction ( ) ;
124
124
command . CommandText = $ """
125
125
IF(OBJECT_ID('tempdb..{ Name } ') IS NOT NULL)
126
126
DROP TABLE { _sqlGenerationHelper . DelimitIdentifier ( Name ) } ;
You can’t perform that action at this time.
0 commit comments