Repository in Code First Net Core 2.0
Lambda.Domain
Project where the entities related to the database are placed
Lambda.Core
Nucleus that manages the repository and the entity framework core .net
Lambda.Repository
Project is in charge of creating repository and entity framework management functionality and migration of domain entities ContextFactory.cs: This is where the SQL Server connection string is located.
TestConsole
Project that adds a record in the example table.
Use migration
From the package manager console. We execute the command add-migration Then we execute update-database to update the database
Autor
Israel Silvestre GarcĂa