Skip to content

pabloveintimilla/entityframework

Repository files navigation

Exercise of "Curso de Fundamentos de Entity Framework"

Check "Curso de Fundamentos de Entity Framework" in https://platzi.com/cursos/entity-framework/

Course resume

Discover Entity Framework, a modern ORM designed for .Net with a project to add to your portfolio. Make the connection to a database and create the models using the Fluent API.

  • Create a .NET project with the Entity Framework.
  • It uses the Fluent API to specify the configuration of the models.
  • Learn what migrations are and add seed data to the project.
  • Learn the elements of a CRUD to consume data with the Entity Framework

Install

  1. Install pre requirements:
  • Net SDK
  • Postgres server
  • Postman
  • Dotnet EF
  1. Configure project
  • Modify appsettings.json to change postgress connection
  1. Run project
$ dotnet restore
$ dotnet run

Check port in console messages

  1. Import collection of postman from postman.json file and change baseURL param to current URL project
  2. In postman call to DbConnect request or in a browser go to http://localhost:[port]/dbconnect)
  3. Using a postgresql client database, check database and tables created

Migrations

To execute migrations run

$ dotnet migrations update

About

API of a task manager using C# and Entity Framework

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages