forked from dotnet/efcore
-
Notifications
You must be signed in to change notification settings - Fork 0
Design Meeting Notes July 23, 2015
Brice Lambson edited this page Aug 20, 2015
·
10 revisions
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 -i, --idempotent -o, --output -c, --context -s, --startupProject |
|
[Migration] -Context -Project -StartupProject |
dnx [project] ef [migration] -c, --context -s, --startupProject |
|
[Connection [Provider] -Project |
dnx [project] ef [connection [provider] |
|
[Provider] -Project |
dnx [project] ef [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
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.
Please use the discussion issue to provide feedback, ask questions, etc.