Skip to content

Commit

Permalink
Add support for System.Transactions
Browse files Browse the repository at this point in the history
Fixes #5595
  • Loading branch information
AndriySvyryd committed Aug 25, 2017
1 parent c3a59e4 commit 7e0f505
Show file tree
Hide file tree
Showing 27 changed files with 1,210 additions and 594 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

using System.Threading;
using System.Threading.Tasks;
using System.Transactions;
using JetBrains.Annotations;
using Microsoft.EntityFrameworkCore.Diagnostics;
using Microsoft.EntityFrameworkCore.Internal;
Expand Down Expand Up @@ -44,6 +45,10 @@ public virtual Task<IDbContextTransaction> BeginTransactionAsync(
public virtual void RollbackTransaction() => _logger.TransactionIgnoredWarning();

public virtual IDbContextTransaction CurrentTransaction => null;
public virtual Transaction EnlistedTransaction => null;
public virtual void EnlistTransaction(Transaction transaction)
{
}

public virtual void ResetState()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
<ProjectReference Include="..\EFCore.Relational\EFCore.Relational.csproj" />
<ProjectReference Include="..\EFCore.Specification.Tests\EFCore.Specification.Tests.csproj" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net461'">
<Reference Include="System.Transactions" />
</ItemGroup>

<ItemGroup>
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
Expand Down
Loading

0 comments on commit 7e0f505

Please sign in to comment.