1

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.

  1. What are the benefits of using Unit Of Work and Repository pattern together.
  2. I would like to know Is there any code generator to generate nice and clean code for this patterns ?

Thanks in advance.

Saber Amani
  • 6,409
  • 12
  • 53
  • 88

1 Answers1

1

What are the benefits of using Unit Of Work and Repository pattern together.

Check these answers:

I would like to know Is there any code generator to generate nice and clean code for this patterns ?

According to previous linked answers do you still think that autogeneration makes sense? Generic repository is just single class and alone it is in most scenarios redundant. It is only useful as a base class for specific repositories which must be developed manually.

Community
  • 1
  • 1
Ladislav Mrnka
  • 360,892
  • 59
  • 660
  • 670