From 92e503f308a714f0269bd34857387cd0a647e5aa Mon Sep 17 00:00:00 2001 From: Lars Mitsem Selbekk Date: Sun, 7 Mar 2021 23:11:38 +0100 Subject: [PATCH] Change to Postgres --- Models/BadgeContext.cs | 10 ++++------ SpeiderappAPI.csproj | 1 + 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Models/BadgeContext.cs b/Models/BadgeContext.cs index d1e1a4c..8f7ccaf 100644 --- a/Models/BadgeContext.cs +++ b/Models/BadgeContext.cs @@ -4,11 +4,9 @@ namespace SpeiderappAPI.Models { public class BadgeContext : DbContext { - public BadgeContext(DbContextOptions options) - : base(options) - { - } - public DbSet BadgeList { get; set; } + + protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) + => optionsBuilder.UseNpgsql(""); } -} +} \ No newline at end of file diff --git a/SpeiderappAPI.csproj b/SpeiderappAPI.csproj index 7ef5b52..75fee0f 100644 --- a/SpeiderappAPI.csproj +++ b/SpeiderappAPI.csproj @@ -12,5 +12,6 @@ +