Reputation: 1
I want to register my context class that have this implementation:
I want to using this context to seed data but when I call the GetService
method on the serviceProvider
, I get this 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