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 Sep 2, 2017
1 parent 0c84743 commit 693ef8c
Show file tree
Hide file tree
Showing 32 changed files with 1,464 additions and 645 deletions.
15 changes: 15 additions & 0 deletions src/EFCore.InMemory/Storage/Internal/InMemoryTransactionManager.cs
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 @@ -73,6 +74,20 @@ public virtual Task<IDbContextTransaction> BeginTransactionAsync(
/// </summary>
public virtual IDbContextTransaction CurrentTransaction => null;

/// <summary>
/// This API supports the Entity Framework Core infrastructure and is not intended to be used
/// directly from your code. This API may change or be removed in future releases.
/// </summary>
public virtual Transaction EnlistedTransaction => null;

/// <summary>
/// This API supports the Entity Framework Core infrastructure and is not intended to be used
/// directly from your code. This API may change or be removed in future releases.
/// </summary>
public virtual void EnlistTransaction(Transaction transaction)
{
}

/// <summary>
/// This API supports the Entity Framework Core infrastructure and is not intended to be used
/// directly from your code. This API may change or be removed in future releases.
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 693ef8c

Please sign in to comment.