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