Skip to content

kpobb1989/DotNetCore.EfTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

DotNetCore.EfTools

EfTools provides alias for common EntityFramework CLI commands and simplifies working with EF. No need to change your startup project anymore to the one that contains DbContext, since you can specify EFProject in your appsettings.json

Prerequisites

  1. Install Microsoft.EntityFrameworkCore.Tools to your host project
  2. Install DotNetCore.EfTools to your host project
  3. Add "EFProject": "Project_Name_Contains_DbContext" in your appsettings.json

New CLI alias:

efam // the same as Add-Migration -p EFProject
  
efrm (-f optional) // the same as Remove-Migration -p EFProject

appsettings.json sample

{
  "EFProject":  "App.DB"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published