Skip to content

Design Meeting Notes July 23, 2015

Brice Lambson edited this page Aug 20, 2015 · 10 revisions

NuGet/DNX Commands

We reviewed the Entity Framework Commands and their parameters. Here is the outcome.

NuGet DNX
Add-Migration
    [Name]
    -Context
    -Project
    -StartupProject
dnx [project] ef migrations add
    [name]
    -c, --context
    -s, --startupProject
Remove-Migration
    -Context
    -Project
    -StartupProject
dnx [project] ef migrations remove
    -c, --context
    -s, --startupProject
Script-Migration
    -From (required when -To)
    -To
    -Idempotent
    -Context
    -Project
    -StartupProject
dnx [project] ef migrations script
    [from] -f, --from (required when --to)
    [to] -t, --to
    -i, --idempotent
    -o, --output
    -c, --context
    -s, --startupProject
Apply-Migration Update-Database
    [Migration]
    -Context
    -Project
    -StartupProject
dnx [project] ef migration apply database update
    [migration]
    -c, --context
    -s, --startupProject
Reverse-Engineer Scaffold-DbContext
    [ConnectionString]
    [Provider]
    -Project
    -StartupProject
dnx [project] ef revEng dbcontext scaffold
    [connectionString]
    [provider]
Customize-ReverseEngineer Scaffold-DbContextTemplate
    [Provider]
    -Project
    -StartupProject
dnx [project] ef revEng customize dbcontext scaffold-templates
    [provider]
Use-DbContext
    [Context]
    -Project
(no session)
(tab expansion) dnx [project] ef dbcontext list
    -s, --startupProject
(tab expansion) dnx [project] ef migrations list
    -s, --startupProject

Here are some other, general notes we had.

  • Cross-reference related commands in help
  • For renamed commands, ensure errors are useful to early adopters

It was also interesting to view the DNX sub-commands as a hierarchy.

  • migrations
    • list
    • add
    • remove
    • script
  • dbcontext
    • list
    • scaffold
    • scaffold-templates
  • database
    • update

Cross-platform coding guidelines

We reviewed and discussed how to make the EF code more sensitive to Linux and OS X. The issues discussed have now been addressed in Engineering Guidelines - Cross-platform coding.

Discussion

Please use the discussion issue to provide feedback, ask questions, etc.

Clone this wiki locally