https://github.com/jharrilim/netcore2.1-pg10
Putting together .NET Core with Postgres and EF Core.
https://github.com/jharrilim/netcore2.1-pg10
csharp dotnet-core2 ef-core postgres
Last synced: 20 days ago
JSON representation
Putting together .NET Core with Postgres and EF Core.
- Host: GitHub
- URL: https://github.com/jharrilim/netcore2.1-pg10
- Owner: jharrilim
- Created: 2018-06-17T23:01:34.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-01T00:04:13.000Z (almost 8 years ago)
- Last Synced: 2025-10-08T12:42:22.441Z (8 months ago)
- Topics: csharp, dotnet-core2, ef-core, postgres
- Language: C#
- Homepage:
- Size: 547 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# netcore2.1-pg10
PoC to try to use PostGresql with .NET Core 2.1.
## Prerequisite
- [.NET Core 2.1 SDK](https://www.microsoft.com/net/download/dotnet-core/sdk-2.1.300)
## 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.