Entity Framework 6 Recipes, Second Edition

  • 7h 14m
  • Brian Driscoll, Larry Tenny, Nitin Gupta, Rob Vettor, Zeeshan Hirani
  • Apress
  • 2013

Entity Framework 6 Recipes provides an exhaustive collection of ready-to-use code solutions for Entity Framework, Microsoft's model-centric, data-access platform for the .NET Framework and ASP.NET development. With this book, you will learn the core concepts of Entity Framework through a broad range of clear and concise solutions to everyday data access tasks. Armed with this experience, you will be ready to dive deep into Entity Framework, experiment with new approaches, and develop ways to solve even the most difficult data access challenges. If you are a developer who likes to learn by example, then this is the right book for you.

  • Gives ready-to-use, real-world recipes to help you with everyday tasks
  • Places strong focus on DbContext and the Code First approach
  • Covers new features such as Asynch Query and Save, Codebased Configuration, Connection Resiliency, Dependency Resolution, and much more

What you’ll learn

  • Implement basic data access design patterns using Entity Framework.
  • Seamlessly model your solutions across both code and data.
  • Provide data access to Windows 8 and Metro applications.
  • Integrate with WCF Data Services
  • Improve data access performance.
  • Simplify and reduce your code through data binding.

Who this book is for

Entity Framework 6 Recipes is for anyone learning Microsoft’s Entity Framework—Microsoft’s primary data access platform in the .NET Framework. If you have ever struggled to learn a new technology, programming model, or way of doing something, you know how helpful simple and real-world examples can be. For the beginning developer, this book provides concrete examples for common data access tasks. For developers having experience with previous Microsoft data access platforms, this book provides a task-by-task mapping between previous approaches and the patterns used in Entity Framework.

About the Authors

Zeeshan Hirani actively uses Entity framework in the development of an e-commerce web site for a top-300 ecommerce retailer. He has written several articles and maintains and active and influential Entity framework blog.

Larry Tenny has more than 20 years’ experience developing applications using a broad range of development tools primarily targeting the Microsoft platform. He has extensive .NET development experience. He has a Ph.D. in computer science from Indiana University.

Brian Driscoll has been developing business information systems using both Microsoft and traditional open source technologies since 2002. He specializes in providing consultative solutions to small-and medium-sized businesses in industries ranging from healthcare to market research. Brian earned a Master of Software Engineering degree with a concentration in expert systems from Drexel University in 2011.

Nitin Gupta is a Microsoft-certified technology consultant in .NET, and he is a certified PRINCE2 practitioner. He has extensive experience developing enterprise applications using a broad range of development tools since .NET 1.1. He's also worked on a variety of applications ranging from middleware business components, datadriven services using different ORM technologies, to customer-facing windows and web applications in a number of business domains including e-commerce, banking, digital advertising and marketing, travel, ERP procurement, financial accounting, and insurance. He has led and worked on projects for Allstate Insurance, Citigroup, Janus Capital, and United Healthcare.

Rob Vettor is a Developer Consultant with Microsoft, helping Microsoft Enterprise customers build high-quality software. Rob's focus is on application architecture along with the Microsoft web and data programmability stack, including ASP.NET MVC, Web API, and the Entity Framework. An INETA Regional Speaker, user group leader, and former three-time C# MVP, Rob is a frequent presenter at regional technical conferences, and he has built systems for a number of corporations including Avanade, Raytheon, American Express, and Jack Henry and Associates.

In this Book

  • Getting Started with Entity Framework
  • Entity Data Modeling Fundamentals
  • Querying an Entity Data Model
  • Using Entity Framework in ASP.NET MVC
  • Loading Entities and Navigation Properties
  • Beyond the Basics with Modeling and Inheritance
  • Working with Object Services
  • Plain Old CLR Objects
  • Using the Entity Framework in N-Tier Applications
  • Stored Procedures
  • Functions
  • Customizing Entity Framework Objects
  • Improving Performance
  • Concurrency