© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
14 replies
gio735

EF-Core unable to create migration

I'm trying to crate migration, but every single time I get this error. Startup project is set and in package manager project with
DbContext
DbContext
is selected too. Haven't changed anything significant that I could think of since last migration.


DbContext
https://codeshare.io/k0zVX3

Method to add DbContext
https://codeshare.io/0bPKZl

Program class
https://codeshare.io/g8M7kR
(didn't copy fully since rest is not related to database)

AddServices()
https://codeshare.io/MkwOKQ
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Migration issues -EF core.
C#CC# / help
16mo ago
❔ EF Core migrations
C#CC# / help
4y ago
❔ EF Core Add Migration issue
C#CC# / help
4y ago
✅ Adding EF Core Migration Error
C#CC# / help
4y ago