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...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: C# | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 531 | Hits: 57

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD