C
C#2y ago
Hercules

✅ Im trying to migrate my ef core project into my local MSSql Database but a context is wrong.

Everytime i run
dotnet ef migrations add InitialCreate
dotnet ef migrations add InitialCreate
or
dotnet ef database update
dotnet ef database update
I keep getting " Unable to create an object of type 'MariaDbContext' ..." I wonder why i have checked the code and there isn't any errors. that im aware of.
3 Replies
Angius
Angius2y ago
Show $code
MODiX
MODiX2y ago
To post C# code type the following: ```cs // code here ``` Get an example by typing $codegif in chat If your code is too long, post it to: https://paste.mod.gg/
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.