Create Migration always fail
So I wanted to create a SQL Server database table based on your C# model. I have typed down
dotnet ef migrations add InitialCreate
but it never gets to migrate. The dotnet build
shows no noticeable errors like this
`
The link to all other database-related code https://pastebin.com/qFyNtM04
Could anyone point me in the right direction?Pastebin
//DbContextpublic class HomeFinderContext : DbContext{ public HomeF...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
3 Replies
Is this a solution with multiple projects in it? And have you tried cleaning the project through VS / Rider / whatever IDE you're using?
No, it is a solution with a single project. Please bear with this question back: what do you mean by cleaning the project? dotnet build does not do it?
I mean
dotnet clean
or using the equivalent option in your IDE's UI.