Skip to content

Layered Web API REST with dotnet, entity framework, asp.net an Postgresql.

Notifications You must be signed in to change notification settings

Lucasbrunoferreira/dotnet-api-rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotnet API REST

This is a example, to implements a web api in layers with C# (dotnet) and Postgresql

Architecture (Layers)

  • .API - Layer responsible for the manipulation of routes and http requests.

  • .BLL - Layer responsible for business rules.

  • .DAL - Layer responsible for data modeling and access to the database.

Run Migrations

  • cd BookStore.DAL
  • dotnet ef database update

Run

After preparing your database and your connection string ( BookStore.DAL/DataBaseContext.cs ), follow the steps:

  • dotnet restore
  • cd BookStore.API
  • dotnet run
  • Application is listening on http://localhost:5001

About

Layered Web API REST with dotnet, entity framework, asp.net an Postgresql.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages