Skip to content

Commit

Permalink
Change to Postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsSelbekk committed Mar 7, 2021
1 parent a97efaf commit 92e503f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Models/BadgeContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ namespace SpeiderappAPI.Models
{
public class BadgeContext : DbContext
{
public BadgeContext(DbContextOptions<BadgeContext> options)
: base(options)
{
}

public DbSet<Badge> BadgeList { get; set; }

protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
=> optionsBuilder.UseNpgsql("");
}
}
}
1 change: 1 addition & 0 deletions SpeiderappAPI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="5.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="5.0.1" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="5.0.1" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="5.0.2" />
</ItemGroup>
</Project>

0 comments on commit 92e503f

Please sign in to comment.