-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Target .NET Standard 2.1, update version
* Version is now 3.3.0 * Take dependency on EntityFramework 6.3.0-preview5-19254-05 * All tests pass * Remove unneeded implicit assembly references for net45 Closes #119
- Loading branch information
Showing
7 changed files
with
59 additions
and
30 deletions.
There are no files selected for viewing
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
3 changes: 2 additions & 1 deletion
3
test/EntityFramework6.Npgsql.Tests/EntityFramework6.Npgsql.Tests.csproj
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
30 changes: 30 additions & 0 deletions
30
test/EntityFramework6.Npgsql.Tests/Support/AssemblySetup.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,30 @@ | ||
using System.Data.Entity; | ||
using NLog.Config; | ||
using NLog.Targets; | ||
using NUnit.Framework; | ||
using Npgsql.Logging; | ||
using EntityFramework6.Npgsql.Tests; | ||
using EntityFramework6.Npgsql.Tests.Support; | ||
|
||
// ReSharper disable CheckNamespace | ||
|
||
[SetUpFixture] | ||
public class AssemblySetup | ||
{ | ||
[OneTimeSetUp] | ||
public void RegisterDbProvider() | ||
{ | ||
var config = new LoggingConfiguration(); | ||
var consoleTarget = new ConsoleTarget(); | ||
consoleTarget.Layout = @"${message} ${exception:format=tostring}"; | ||
config.AddTarget("console", consoleTarget); | ||
var rule = new LoggingRule("*", NLog.LogLevel.Info, consoleTarget); | ||
config.LoggingRules.Add(rule); | ||
NLog.LogManager.Configuration = config; | ||
|
||
NpgsqlLogManager.Provider = new NLogLoggingProvider(); | ||
NpgsqlLogManager.IsParameterLoggingEnabled = true; | ||
|
||
DbConfiguration.SetConfiguration(new TestDbConfiguration()); | ||
} | ||
} |
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
15 changes: 15 additions & 0 deletions
15
test/EntityFramework6.Npgsql.Tests/Support/TestDbConfiguration.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,15 @@ | ||
using System; | ||
using System.Data.Entity; | ||
using Npgsql; | ||
|
||
namespace EntityFramework6.Npgsql.Tests.Support | ||
{ | ||
public class TestDbConfiguration : DbConfiguration | ||
{ | ||
public TestDbConfiguration() | ||
{ | ||
SetProviderFactory("Npgsql", NpgsqlFactory.Instance); | ||
SetProviderServices("Npgsql", NpgsqlServices.Instance); | ||
} | ||
} | ||
} |