All Projects → bytefish → ModularEfCore

bytefish / ModularEfCore

Licence: MIT license
Building Modular Applications with EF Core 2.1

Programming Languages

C#
18002 projects

ModularEfCore

This repository shows a simple way to build modular applications using Entity Framework Core 2.1. Instead of building a huge DbContext for the Application, it is injecting mappings registered in the application root.

I have written an article on it over at:

Creating the Database

First adjust the following Connection String the appsettings.json of the ModularEfCore.Example.Web project:

{
  "ConnectionStrings": {
    "DefaultConnection": "Server=.\\SQLEXPRESS;Database=SampleDB;Trusted_Connection=True;"
  }
}

To create the Database run the following from the Package Manager Console:

PM> Update-Database
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].