❔ Some services

I get it on a line like this. It continues even though I addScoped
No description
No description
7 Replies
Jimmacle
Jimmacle13mo 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
The Selfish GeneOP13mo ago
it doesn't matter
Jimmacle
Jimmacle13mo ago
can you show the code though?
The Selfish Gene
The Selfish GeneOP13mo ago
No description
No description
Jimmacle
Jimmacle13mo 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
JakenVeina13mo ago
DbContext is the abstraction that was built to REPLACE the generic repository pattern don't use it that way
Accord
Accord13mo 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.
Want results from more Discord servers?
Add your server