I've been using EF4 as a ORM in many projects since its earlier version, without any pattern such as Unit Of Work
and IRepository
.But now based on many articles reading everyday I decided to use those patterns side by side.
Now I have two questions, maybe first one is frequently asked, but I would like to hear more from all experts.
- What are the benefits of using Unit Of Work and Repository pattern together.
- I would like to know Is there any code generator to generate nice and clean code for this patterns ?
Thanks in advance.