ArashAs
ArashAs

Reputation: 1

DI container | explicit ServiceProvider error ASP.NET Core

I want to register my context class that have this implementation:

UserMangemtentContext

I want to using this context to seed data but when I call the GetService method on the serviceProvider, I get this error:

ERROR

How can I fix this error?

I tried to register for this service using GetRequiredService and other functions but it's not working.

Upvotes: 0

Views: 19

Answers (0)

Related Questions