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 12. Exploring EDM metadata

 

This chapter covers
  • Reading the EDM
  • Retrieving entity structures
  • Retrieving function structures
  • Writing generic code

 

Roughly speaking, the EDM consists of three XML files carrying information about classes, database, and their mappings. It’s no surprise that Entity Framework is the first consumer of these XML files, using them to generate the SQL code for CRUD operations, to understand whether a column is an identity on the database, and much more.

Reading XML files with LINQ to XML is easier than ever, but it will never be like having a set of well-designed APIs that access the same data. Entity Framework’s regular need to access EDM metadata led to the need for simplicity, which in turn led to a set ...

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