Preface

In this book, we attempt to bring together the best practices around using Entity Framework in a test-first manner, focusing on the architectural separation of concerns, and testability at all times. Throughout the book, we focus on ways to ensure the best quality of performance from your data layer, providing you with measurable ways to test performance, to reviewing SQL statements generated by Entity Framework.

What this book covers

Chapter 1, Improving Entity Framework in the Real World, describes how to use code first, establish repository and unit of work patterns, and test your queries.

Chapter 2, Understanding Fluent Configuration API, goes into detail on how to manage configuration mappings between your entities and your database.

Chapter 3, Handling Validation in Entity Framework, discusses validation from the simple to the complex, and how to integrate that with an ASP.NET MVC user interface.

Chapter 4, Working with Transactions and Stored Procedures, provides best practices around using Stored Procedures in your environment while maintaining separation of concerns between the database and Entity Framework.

Chapter 5, Improving Entity Framework with Query Libraries, begins the ground work of separating your queries in a testable, composable manner.

Chapter 6, Improving Complex Queries Scenarios, opens by discussing dynamic sorting and grouping and closes with a complete Specification pattern implementation.

Chapter 7, Using Concurrent and Parallel Processing, describes the challenges faced in highly concurrent applications, and when managing multiple database contexts.

Chapter 8, Improving Entity Framework with Complex Business Scenarios, discusses some of the more difficult business requests, such as handling soft deletes, capturing audit data, and refreshing entities from the database on save.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset