From 275fbc81e7e0d793e02d9728157dff393300a10f Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Thu, 3 Oct 2019 16:36:02 +0900 Subject: [PATCH] Prepare BTCPayServer.Data for .netcore 3.0 --- BTCPayServer.Data/BTCPayServer.Data.csproj | 14 +++++++++++--- .../Data/ApplicationDbContextFactory.cs | 4 ++++ 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/BTCPayServer.Data/BTCPayServer.Data.csproj b/BTCPayServer.Data/BTCPayServer.Data.csproj index bf1f47887..082ceee3f 100644 --- a/BTCPayServer.Data/BTCPayServer.Data.csproj +++ b/BTCPayServer.Data/BTCPayServer.Data.csproj @@ -1,11 +1,19 @@  - + - - + + + + + + + + + + diff --git a/BTCPayServer.Data/Data/ApplicationDbContextFactory.cs b/BTCPayServer.Data/Data/ApplicationDbContextFactory.cs index 55f24bed8..25093fc9b 100644 --- a/BTCPayServer.Data/Data/ApplicationDbContextFactory.cs +++ b/BTCPayServer.Data/Data/ApplicationDbContextFactory.cs @@ -45,7 +45,11 @@ namespace BTCPayServer.Data class CustomNpgsqlMigrationsSqlGenerator : NpgsqlMigrationsSqlGenerator { +#if NETCOREAPP21 public CustomNpgsqlMigrationsSqlGenerator(MigrationsSqlGeneratorDependencies dependencies) : base(dependencies) +#else + public CustomNpgsqlMigrationsSqlGenerator(MigrationsSqlGeneratorDependencies dependencies, IMigrationsAnnotationProvider annotations, Npgsql.EntityFrameworkCore.PostgreSQL.Infrastructure.Internal.INpgsqlOptions opts) : base(dependencies, annotations, opts) +#endif { }