-
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.
Showing
56 changed files
with
141 additions
and
174 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
<Project> | ||
|
||
<PropertyGroup> | ||
<IncludeSymbols>true</IncludeSymbols> | ||
<SymbolPackageFormat>snupkg</SymbolPackageFormat> | ||
</PropertyGroup> | ||
|
||
<!-- Reference .NET Framework reference assemblies, allows building on environments without .NET Framework installed | ||
(e.g. Linux). Gets ignored on non-framework TFMs. --> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0-preview.1" PrivateAssets="All" /> | ||
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0-preview.2" PrivateAssets="All" /> | ||
</ItemGroup> | ||
|
||
</Project> |
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,12 @@ | ||
<Project> | ||
<ItemGroup> | ||
<PackageReference Update="Npgsql" Version="4.0.10" /> | ||
<PackageReference Update="Npgsql.LegacyPostgis" Version="4.0.10" /> | ||
<PackageReference Update="EntityFramework" Version="6.3.0" /> | ||
|
||
<PackageReference Update="NUnit" Version="3.12.0" /> | ||
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="16.3.0" /> | ||
<PackageReference Update="NUnit3TestAdapter" Version="3.15.1" /> | ||
<PackageReference Update="NLog" Version="4.6.7" /> | ||
</ItemGroup> | ||
</Project> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
<PropertyGroup> | ||
<LangVersion>latest</LangVersion> | ||
<TargetFrameworks>net45;netcoreapp3.0</TargetFrameworks> | ||
<RootNamespace>EntityFramework6.Npgsql.Tests</RootNamespace> | ||
<AssemblyName>EntityFramework6.Npgsql.Tests</AssemblyName> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="EntityFramework" /> | ||
<PackageReference Include="NUnit" /> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" /> | ||
<PackageReference Include="NUnit3TestAdapter" /> | ||
<PackageReference Include="NLog" /> | ||
<PackageReference Include="Npgsql.LegacyPostgis" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\EF6.PG\EF6.PG.csproj" /> | ||
</ItemGroup> | ||
</Project> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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()); | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
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
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); | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,9 @@ | ||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> | ||
<entityFramework> | ||
<defaultConnectionFactory xdt:Transform="Remove" /> | ||
<defaultConnectionFactory type="Npgsql.NpgsqlConnectionFactory, EntityFramework6.Npgsql" xdt:Transform="Insert" /> | ||
<providers> | ||
<provider invariantName="Npgsql" type="Npgsql.NpgsqlServices, EntityFramework6.Npgsql" xdt:Transform="InsertIfMissing" xdt:Locator="Match(invariantName)" /> | ||
</providers> | ||
</entityFramework> | ||
</configuration> |
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,11 @@ | ||
<configuration> | ||
<configSections> | ||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --> | ||
</configSections> | ||
<system.data> | ||
<DbProviderFactories> | ||
<remove invariant="Npgsql" /> | ||
<add name="Npgsql Provider" invariant="Npgsql" description=".NET Framework Data Provider for PostgreSQL" type="Npgsql.NpgsqlFactory, Npgsql, Version=4.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7" /> | ||
</DbProviderFactories> | ||
</system.data> | ||
</configuration> |
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,9 @@ | ||
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> | ||
<entityFramework> | ||
<defaultConnectionFactory xdt:Transform="Remove" /> | ||
<defaultConnectionFactory type="Npgsql.NpgsqlConnectionFactory, EntityFramework6.Npgsql" xdt:Transform="Insert" /> | ||
<providers> | ||
<provider invariantName="Npgsql" type="Npgsql.NpgsqlServices, EntityFramework6.Npgsql" xdt:Transform="InsertIfMissing" xdt:Locator="Match(invariantName)" /> | ||
</providers> | ||
</entityFramework> | ||
</configuration> |
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,11 @@ | ||
<configuration> | ||
<configSections> | ||
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --> | ||
</configSections> | ||
<system.data> | ||
<DbProviderFactories> | ||
<remove invariant="Npgsql" /> | ||
<add name="Npgsql Provider" invariant="Npgsql" description=".NET Framework Data Provider for PostgreSQL" type="Npgsql.NpgsqlFactory, Npgsql, Version=4.0.10.0, Culture=neutral, PublicKeyToken=5d8b90d52f46fda7" /> | ||
</DbProviderFactories> | ||
</system.data> | ||
</configuration> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
test/EntityFramework6.Npgsql.Tests/EntityFramework6.Npgsql.Tests.csproj
This file was deleted.
Oops, something went wrong.