Using T4Scaffolding to Create DbContext and Repository from Domain Classes
Posted by: Julia Lerman Blog - Dont Be Iffy...,
on 11 Feb 2012 |
View original | Bookmarked: 0 time(s)
You may already be familiar with the fact that ASP.NET MVC 3 tooling includes a scaffolding option that lets you point to a domain class and automatically build a Controller, a set of Views and if it does not exist yet, an Entity Framework DbContext class expose that class. The controller CRUD code uses the DbContext to perform its operations. Scotts Guthrie & Hanselman both introduced us to this in blog posts last spring and Ive certainly demod it way too many times. This is handy but it puts...