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 29, 2017
1 parent 554d288 commit 1bf9b69
Show file tree
Hide file tree
Showing 28 changed files with 1,286 additions and 595 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 1bf9b69

Please sign in to comment.