Devs Entity Framework Core has the following commands
The initialize
or init
command configure the project solution
Usage: dotnet DevsEntityFrameworkCore.ConsoleUi.dll init [options]
Options:
--help Show help information
-d <directory> Full Path to .csproj file target
--c Used to create only Context Class
--u Used to create only UnitOfWork Class and Interface
--r Used to create only RepositoryBase Class and Interface
--i Used to create only Initialize Class
--all Used to create all options below included mappings and repositories
--replace Used to force replace file if exist
Example:
dotnet DevsEntityFrameworkCore.ConsoleUi.dll init -d "/ProjectName.Infrastructure/ProjectName.csproj" --context --replace
The mapping
or map
command creates entity configuration to database
Usage: dotnet DevsEntityFrameworkCore.ConsoleUi.dll map [options]
Options:
--help Show help information
-d <directory> Full Path to .csproj file target
--replace Used to force replace file if exist
Example:
dotnet DevsEntityFrameworkCore.ConsoleUi.dll map -d "/ProjectName.Infrastructure/ProjectName.csproj" --replace
The repository
or repo
command creates the Class and Interface Repository to access database for entity
Usage: dotnet DevsEntityFrameworkCore.ConsoleUi.dll repo [options]
Options:
--help Show help information
-d <directory> Full Path to .csproj file target
--replace Used to force replace file if exist
Example:
dotnet DevsEntityFrameworkCore.ConsoleUi.dll repo -d "/ProjectName.Infrastructure/ProjectName.csproj" --replace