Practical Entity Framework Core 6
Год издания: 2022
Автор: Gorman B.L.
Издательство: Apress
ISBN: 978-1-4842-7301-2
Язык: Английский
Формат: PDF
Качество: Издательский макет или текст (eBook)
Интерактивное оглавление: Да
Количество страниц: 812
Описание: Take a developer journey that paves the way to enterprise-level database access from .NET and C# using the object-relational mapper (ORM) of choice. This second edition is revised to cover Entity Framework Core 5 and 6 (EF) and includes new content on table-per-type mapping, LINQ improvements (filtered includes), many-to-many navigation changes, split queries, simple logging using the DBCommandInterceptor, and other improvements available in EF Core 6. 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.
Оглавление
About the Author xxiii
About the Technical Reviewer xxv
Acknowledgments xxvii
Introduction xxix
Part I: Getting Started 1
Chapter 1: Introduction to Entity Framework 3
Chapter 2: Working with an Existing Database 27
Chapter 3: Entity Framework: Code First 81
Part II: Building the Data Solution 145
Chapter 4: Models and the Data Context 147
Chapter 5: Constraints, Keys, and Relationships 195
Chapter 6: Data Access (Create, Read, Update, Delete) 269
Chapter 7: Stored Procedures, Views, and Functions 299
Chapter 8: Sorting, Filtering, and Paging 373
Part III: Enhancing the Data Solution 405
Chapter 9: LINQ for Queries and Projections 407
Chapter 10: Encryption of Data 463
Chapter 11: Repository and Unit of Work Patterns 519
Chapter 12: Unit Testing, Integration Testing, and Mocking 575
Chapter 13: Asynchronous Data Operations and Multiple Database Contexts 615
Part IV: Recipes for Success 673
Chapter 14: .Net 5 and EFCore5 675
Chapter 15: .Net 6 and EFCore6 737
Chapter 16: Appendix A: Troubleshooting 777
Index 787