❔ Some services

I get it on a line like this. It continues even though I addScoped
No description
No description
7 Replies
Jimmacle
Jimmacle8mo ago
repositories on top of ef core FeelsBadMan does UserRepository's constructor look like? i don't think it should be trying to resolve a literal DbContext but your specfic context type
The Selfish Gene
it doesn't matter
Jimmacle
Jimmacle8mo ago
can you show the code though?
Jimmacle
Jimmacle8mo ago
where are you registering IUnitOfWorkFactory? also, fwiw you really shouldn't be using generic repositories/UoW on top of EF core because a dbcontext already is that
JakenVeina
JakenVeina8mo ago
DbContext is the abstraction that was built to REPLACE the generic repository pattern don't use it that way
Accord
Accord8mo 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.