A project template for database interactions using the repository pattern.
$ dotnet add package Platy.AdventureWorks.RepositoryA project template that I use to quickly create a set of repository classes for interacting with any existing database.
csx templates to customize the entities,the repository classes and the model classes that are output by the generator.First, initialize the submodules using git submodule update --init.
Build the solution - Platy.AdventureWorks.Repository.sln.
Open the solution - EntityFrameworkCore.Generator/EntityFrameworkCore.Generator.sln and build it.
This is one of the submodules downloaded.
Execute the command ..\..\efg\EntityFrameworkCore.Generator.exe generate -f .\entity-generation.yml from the directory of Platy.AdventureWorks.Repository.csproj.
This generates the domain files. Make sure the AdventureWorks database is available.