Skip to Main Content
Entity Framework 4 in Action
book

Entity Framework 4 in Action

by Stefano Mostarda, Daniele Bochicchio, Marco De Sanctis
May 2011
Intermediate to advanced content levelIntermediate to advanced
576 pages
19h 11m
English
Manning Publications
Content preview from Entity Framework 4 in Action

Chapter 13. Customizing code and the designer

 

This chapter covers
  • Understanding the Visual Studio T4 mechanism
  • Customizing code generation
  • Customizing database DDL generation
  • Customizing the designer

 

You know that by default the Visual Studio designer generates Entity Framework 1.0–style classes. You also know that these classes are generated through a template. What’s great is that you can modify this template, or create new templates, to generate classes to fit your needs. You’ve already seen an example in chapter 2, when we introduced the POCO template provided by Microsoft. Another point where templates help in generating code is during database DDL generation from the storage model (when you use the model-first approach). You’ll ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Professional ADO.NET 3.5 with LINQ and the Entity Framework

Professional ADO.NET 3.5 with LINQ and the Entity Framework

Roger Jennings
ASP.NET MVC 4 in Action

ASP.NET MVC 4 in Action

Matthew Hinze, Jeremy Skinner, Jeffrey Palermo, James Bogard, Eric Hexter
Entity Framework 6 Recipes, Second Edition

Entity Framework 6 Recipes, Second Edition

Brian Driscoll, Nitin Gupta, Rob Vettor, Zeeshan Hirani, Larry Tenny

Publisher Resources

ISBN: 9781935182184Publisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link