0%

Book Description

Determine your object relational mapper (ORM) of choice for enterprise applications using .NET Framework, and especially .NET Framework Core 3.1 and higher. Real-world examples and considerations are presented in this book to help you create robust and efficient database solutions. Throughout the text, actual problems, questions, and common pitfalls are provided to help you recognize optimal solutions for maximum success in the different application scenarios you might encounter. 

Practical Entity Framework begins with a simple overview of the two most common approaches to working with databases—database first and code first—and then focuses on working in a code first manner. Taking the code first approach allows the entire database to be built and maintained in code so there is never a situation in which you cannot restore the database schema. Additionally, the code first approach creates an entirely transparent record of changes to the database that is easily tracked in source control. Emphasis throughout the book is on leaving you well positioned to architect and lead data development efforts for your organization.


What You Will Learn
  • Build robust and maintainable databases using a code first approach
  • Create and execute stored procedures, triggers, and functions
  • Analyze and optimize performance of database queries
  • Ensure data integrity through keys, constraints, and relationships

Who This Book Is For

.NET developers who work with enterprise-level applications and need to interact with data structures and data within the back end data store, developers who want to take a code first approach to building database applications to prevent conflicts and optimize efficiency, and those who are moving into full-stack roles, or into senior and architectural roles, and will be responsible for database design and implementation

Table of Contents

  1. Cover
  2. Front Matter
  3. Part I. Getting Started
    1. 1. Introduction to Entity Framework
    2. 2. Working with an Existing Database
    3. 3. Entity Framework: Code First
  4. Part II. Building the Data Solution
    1. 4. Models and the Data Context
    2. 5. Constraints, Keys, and Relationships
    3. 6. Data Access (Create, Read, Update, Delete)
    4. 7. Stored Procedures, Views, and Functions
    5. 8. Sorting, Filtering, and Paging
    6. 9. LINQ for Queries and Projections
    7. 10. Encryption of Data
  5. Part III. Enhancing the Data Solution
    1. 11. Repository and Unit of Work Patterns
    2. 12. Unit Testing, Integration Testing, and Mocking
    3. 13. Alternatives to Entity Framework: Dapper
  6. Part IV. Recipes for Success
    1. 14. Asynchronous Data Operations and Multiple Database Contexts
    2. 15. .Net 5 and Entity Framework
  7. Back Matter
18.188.61.223