Skip to content

Putting together .NET Core with Postgres and EF Core.

Notifications You must be signed in to change notification settings

jharrilim/netcore2.1-pg10

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

netcore2.1-pg10

PoC to try to use PostGresql with .NET Core 2.1.

Prerequisite

Steps to Reproduce

  1. Create an ASP.NET Core 2.1 MVC Web Project in Visual Studio
  2. Change Authentication to allow support for Individual User Accounts
  3. Create Models
  4. Add DbSet of Models to ApplicationDbContext
  5. Add NuGet packages for Npgsql
  6. Change service in startup to use Npgsql instead of SQL Server
  7. Generate Controller for Foos
  8. Modify POST controller in Foos
  9. Add connection string to appsettings.json
  10. Run "Add-Migration InitialCreate" in NuGet Package Console
  11. Run "Update-Database" in NuGet Package Console

Notes

  • Secret Manager stores secret for DbPassword. The password is not encrypted.

About

Putting together .NET Core with Postgres and EF Core.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages