johnpapa/CodeCamper

Just a clarification

Opened this issue · 0 comments

mkgn commented

In your data project where you keep the repositories cached, I noticed that you pass the DBContext to the cached repository. So, with UoW; when I pass the active context shouldn't we dispose it rather than caching it?

I am trying to learn by looking at your code. I feel, we can enhance the repository provider to look for assemblies in the file system and load them. This will be useful in plug-in scenarios.

Good work in educating people like us! Thank you!