dotnet / dotnet/EntityFramework.Docs
Consistency and clarity with --project
- Dominant language
- Mermaid
- Stars
- 1.7k
- Forks
- 2k
- Avg merge
- 7d 23h
- Merged PRs (30d)
- 16
Description
[Enter feedback here]
I would love to see some quality of life improvements for giving feedback for issues on the critical path to getting the started to the point where the initial migration has been updated to the database. I had issues getting the commands correct, as well as the weird issues you get when you try to perform the process in a solution with multiple projects. This was compounded with the fact that I also had an error that broke the "dotnet ef" test that shows things are setup. The message spoke of duplicate projects, but didn't indicate which projects it saw in which directory, or anything further. The lack of concise details about the problem helped me go in the wrong direction. Since I can't debug the code to see why it's erroring out I get the gray box of obscurity to gaze questioningly through to get feedback on what the problem is. Well I guess if I compile it on my machine and ... Wait that's a harder task than my current problem.
The reason I felt it might be worth taking the time to write this article was first because of frustration. Second because I go through this every time I come back to write some EF code after being away from using it for a year. Something comes up as a gotcha and kills a day. In the past I've went to a stand alone project to solve similar problems because I wasn't getting the syntax correct and there were no decent details to help find out why it was wrong.
---
#### Document Details
⚠ *Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.*
* ID: 4d1bdeea-0ebc-04ff-5b58-1020ad9cd72a
* Version Independent ID: 847fe92a-2940-afbf-b2ee-e68f8a8060be
* Content: [EF Core tools reference (.NET CLI) - EF Core](https://learn.microsoft.com/en-us/ef/core/cli/dotnet)
* Content Source: [entity-framework/core/cli/dotnet.md](https://github.com/dotnet/EntityFramework.Docs/blob/main/entity-framework/core/cli/dotnet.md)
* Product: **entity-framework**
* Technology: **entity-framework-core**
* GitHub Login: @bricelam
* Microsoft Alias: **avickers**
Contributor guide
Assessment
This issue has not been assessed yet.