forked from MassTransit/MassTransit
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged in the EF Core 3.1 update MassTransit#1629
- Loading branch information
Showing
54 changed files
with
808 additions
and
405 deletions.
There are no files selected for viewing
28 changes: 0 additions & 28 deletions
28
src/Persistence/MassTransit.EntityFrameworkCoreIntegration.Tests/AuditContextFactory.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...Transit.EntityFrameworkCoreIntegration.Tests/AuditStore/DataAccess/AuditContextFactory.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
namespace MassTransit.EntityFrameworkCoreIntegration.Tests | ||
{ | ||
using System.Reflection; | ||
|
||
using MassTransit.EntityFrameworkCoreIntegration.Audit; | ||
using MassTransit.Tests.AutomatonymousIntegration; | ||
using Microsoft.EntityFrameworkCore; | ||
using Microsoft.EntityFrameworkCore.Design; | ||
using Shared; | ||
|
||
|
||
public class AuditContextFactory : IDesignTimeDbContextFactory<AuditDbContext> | ||
{ | ||
public AuditDbContext CreateDbContext(string[] args) | ||
{ | ||
// used only for database update and migrations. Since IDesignTimeDbContextFactory is icky, | ||
// we only support command line tools for SQL Server, so use SQL Server if you need to do | ||
// migrations. | ||
|
||
var optionsBuilder = new SqlServerTestDbParameters().GetDbContextOptions(typeof(AuditDbContext)); | ||
return CreateDbContext(optionsBuilder); | ||
} | ||
|
||
public AuditDbContext CreateDbContext(DbContextOptionsBuilder optionsBuilder) | ||
{ | ||
return new AuditDbContext(optionsBuilder.Options, "EfCoreAudit"); | ||
} | ||
} | ||
} |
24 changes: 0 additions & 24 deletions
24
src/Persistence/MassTransit.EntityFrameworkCoreIntegration.Tests/ContextFactory.cs
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
.../MassTransit.EntityFrameworkCoreIntegration.Tests/ContextFactoryWithResilienceStrategy.cs
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...tence/MassTransit.EntityFrameworkCoreIntegration.Tests/LocalDbConnectionStringProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
...igrations/20170710150441_Init.Designer.cs → ...ions/Saga/20170710150441_Init.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 7 additions & 9 deletions
16
.../Migrations/SagaDbContextModelSnapshot.cs → ...ations/Saga/SagaDbContextModelSnapshot.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...meworkCoreIntegration.Tests/Migrations/SagaWithDependency/20171224151458_Init.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.