title: Is MVC 3 Scaffolding usable in n-layer applications?
body: <p>I've seen some examples of ASP.NET MVC3 Scaffolding but those are always simple basic applications. What about layered/tiered solution with several Projects:</p>
  
  <pre><code>/Data  
  /Repository  
  /Services  
  /UI (MVC3)  
  </code></pre>
  
  <p>The basic scaffolding pushes everything into the controller. </p>
  
  <p>Can the scaffolding template be customized so it takes POCOs from Data project, then creates repository in a Repository project, services in a Service project and finally creates a thin controller in MVC that knows nothing about the data context?</p>
  
  <p>I'm little confused because it's a real productivity booster.</p>