Entity Framework 4.1: Expert’s Cookbook


Entity Framework 4.1: Expert’s Cookbook
eBook: $35.99
Formats: PDF, PacktLib, ePub and Mobi formats
$30.59
save 15%!
Print + free eBook + free PacktLib access to the book: $95.98    Print cover: $59.99
$59.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • Hands-on solutions with reusable code examples
  • Strategies for enterprise ready usage
  • Examples based on real world experience
  • Detailed and advanced examples of query management
  • Step-by-step recipes that will guide you to success

Book Details

Language : English
Paperback : 352 pages [ 235mm x 191mm ]
Release Date : March 2012
ISBN : 1849684464
ISBN 13 : 9781849684460
Author(s) : Devlin Liles , Tim Rayburn
Topics and Technologies : All Books, Application Development, Microsoft Development , Cookbooks, Enterprise, Microsoft

Table of Contents

Preface
Chapter 1: Improving Entity Framework in the Real World
Chapter 2: Understanding the Fluent Configuration API
Chapter 3: Handling Validation in Entity Framework
Chapter 4: Working with Transactions and Stored Procedures
Chapter 5: Improving Entity Framework with Query Libraries
Chapter 6: Improving Complex Query Scenarios
Chapter 7: Using Concurrent and Parallel Processing
Chapter 8: Improving Entity Framework with Complex Business Scenarios
Index
  • Chapter 1: Improving Entity Framework in the Real World
    • Introduction
    • Improving Entity Framework by using code first
    • Creating mock database connections
    • Implementing the repository pattern
    • Implementing the unit of work pattern
    • Testing queries
    • Creating databases from code
    • Testing queries for performance
    • Performing load testing against a database
    • Chapter 2: Understanding the Fluent Configuration API
      • Introduction
      • Improving property maps
      • Creating one-to-one maps
      • Creating one-to-many maps
      • Creating many-to-many maps
      • Mapping one table to many objects
      • Mapping many tables to one object
      • Handling inheritance based on database values
      • Handling complex key maps
              • Chapter 7: Using Concurrent and Parallel Processing
                • Introduction
                • Implementing optimistic concurrency
                • Managing parallel contexts
                • Handling data retrieval in highly-threaded environments
                • Attaching objects with unit of work
                • Improving multiple context performance

                  Devlin Liles

                  Devlin Liles is a Principal Consultant at Improving Enterprises and a Data Platform Development MVP. Devlin has been writing software since he first crashed a DOS box back in 1989, and still loves pushing the envelope. Devlin has worked on all sizes of projects from enterprise wide inventory systems, to single install scheduling applications. He is a regular national presenter at user groups, conferences, and corporate events, speaking on data access practices, techniques, and architecture. He is an active community leader, and helps put on several conferences in Dallas and Houston. Devlin works for Improving Enterprises, a Dallas-based company that has been awesome enough to support him in chasing his dreams, and writing awesome code.

                  Tim Rayburn

                  Tim Rayburn is a Principal Consultant with Improving Enterprises, and a Microsoft MVP for Connected Systems Development. He has worked with Microsoft technologies for over 13 years, and is the Founder of the Dallas/Fort Worth Connected Systems User Group, the organizer of the Dallas TechFest, and blogger at TimRayburn.net. When he’s not pursuing the ever moving technology curve, he is an avid gamer, from consoles to table-top RPGs.
                  Sorry, we don't have any reviews for this title yet.

                  Code Downloads

                  Download the code and support files for this book.


                  Submit Errata

                  Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


                  Errata

                  - 3 submitted: last submission 13 Aug 2013

                  Errata type: Code | Page number: Creating many-to-many maps recipe | Errata date: 29 May 12

                  The code in "How to do it..." section includes code for a many-to-many relationship between Posts and AuthorDetails, but the "How it works..." section describes a many-to-many relationship between Posts and Tags which makes more sense but doesn't match the code.

                   

                  Errata type: Others | Page number: 55 | Errata date: 01 Jun 12

                  Add a new C# class named PostMapping to the Mappings folder with the following code: PostMapping should be AuthorDetailMapping as the class name.

                   

                  Errata type: Others | Page number: 56 | Errata date: 01 Jun 12

                  namespace DataAccess { public class BlogContext : DbContext (SHOULD BE DbContext, IUnitOfWork). The book is wrong, the code downloaded is right.

                   

                  Errata type: Others | Page number: Handling multiple context transactions recipe | Errata date: 02 Jun 12

                  Both tests check for blogs with Title == "Test" instead of Title == "Testing". Even if the transactions wouldn't roll back, the test would still pass this way.

                   

                  Errata type: Others | Page number: Implementing composed queries recipe | Errata date: 02 Jun 12

                  In the ShouldReturnRecordsFromTheDatabaseByDescription test method FilterByBlogName is called instead of FilterByDescription.

                   

                  Sample chapters

                  You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                  Frequently bought together

                  Entity Framework 4.1: Expert’s Cookbook +    PowerPivot for Advanced Reporting and Dashboards =
                  50% Off
                  the second eBook
                  Price for both: $42.60

                  Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                  What you will learn from this book

                  • Manage database queries
                  • Leverage the full power of LINQ
                  • Test the data access layer
                  • Design an extensible data access layer
                  • Map any object model to a relational database
                  • Create clean integration tests
                  • Test queries in memory
                  • Compose even the most complex query scenarios
                  • Create and seed test databases from code
                  • Use stored procedures without losing the power of object oriented development

                  In Detail

                  Entity Framework 4.1 allows us to dive into the world of data access without having to write SQL statements. With the power to shape data access by your object model comes questions and this book holds the answers.

                  Entity Framework 4.1: Expert’s Cookbook holds many examples to help guide you through tough technical decisions and avoid technical landmines. The book will guide you from just using Entity Framework to enhancing the data access wizard.

                  This book starts with examples that require some familiarity of object relational mappers, and then moves on to more advanced tasks. You will be guided through complex mapping scenarios, query definition, reusability, integration with other technologies, and architectural management. The approach is step-by-step and test driven so that it is focused as much as possible on solving problems and getting the most out of the time spent working through the book.

                  Entity Framework 4.1: Expert’s Cookbook is a must have for any .NET developer who uses Entity Framework, and wants better, cleaner, and more maintainable code.

                  Approach

                  This book takes a step-by-step problem solving approach that leads you through a problem and explains each step in detail to accomplish the goal. This books gives you concrete code examples as well as detailed information on the decisions involved.

                  Who this book is for

                  This book is for intermediate to advanced .NET developers who have used LINQ to SQL or Entity Framework in some form but want to have more control over the implementation.

                  Code Download and Errata
                  Packt Anytime, Anywhere
                  Register Books
                  Print Upgrades
                  eBook Downloads
                  Video Support
                  Contact Us
                  Awards Voting Nominations Previous Winners
                  Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                  Resources
                  Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software