Skip to content

mcliment/EF6.Commands

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EF6.Commands

EF6 code-first migrations on ASP.NET vNext!

Install

https://www.nuget.org/packages/EF6.Commands/

{
  "dependencies": {
    "EF6.Commands": "1.1.0-*"
  },
  "commands": {
    "ef": "EF6.Commands"
  }
}

You will have to create a DbMigrationConfiguration class yourself. See the test directory for reference.

Usage

Dump of CLI help info:

$ dnx . ef
 v1.1.0-beta

Usage: ef [options] [command]

Options:
  -v|--version  Show version information
  -h|--help     Show help information

Commands:
  context    Commands to manage your DbContext
  migration  Commands to manage your Code First Migrations
  help       Show help information

Use "ef help [command]" for more information about a command.
$ dnx . ef context
 v1.1.0-beta

Usage: ef context [options] [command]

Options:
  -h|--help  Show help information

Commands:
  list  List the contexts

Use "ef help [command]" for more information about a command.
$ dnx . ef migration
 v1.1.0-beta

Usage: ef migration [options] [command]

Options:
  -h|--help  Show help information

Commands:
  add     Add a new migration
  apply   Apply migrations to the database
  list    List the migrations
  script  Generate a SQL script from migrations
  remove  Remove the last migration (not implemented)

Use "ef help [command]" for more information about a command.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%