Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering Entity Framework Core 2.0

You're reading from   Mastering Entity Framework Core 2.0 Dive into entities, relationships, querying, performance optimization, and more, to learn efficient data-driven development

Arrow left icon
Product type Paperback
Published in Dec 2017
Publisher Packt
ISBN-13 9781788294133
Length 386 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Prabhakaran Anbazhagan Prabhakaran Anbazhagan
Author Profile Icon Prabhakaran Anbazhagan
Prabhakaran Anbazhagan
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Kickstart - Introduction to Entity Framework Core 2. The Other Way Around – Database First Approach FREE CHAPTER 3. Relationships – Terminology and Conventions 4. Building Relationships – Understanding Mapping 5. Know the Validation – Explore Inbuilt Validations 6. Save Yourself – Hack Proof Your Entities 7. Going Raw – Leveraging SQL Queries in LINQ 8. Query Is All We Need – Query Object Pattern 9. Fail Safe Mechanism – Transactions 10. Make It Real – Handling Concurrencies 11. Performance – It's All About Execution Time 12. Isolation – Building a Multi-Tenant Database

What this book covers

Chapter 1, Kickstart – Introduction to Entity Framework Core, teaches you about installing/configuring Entity Framework Core in .NET Core applications. It guides us through performing CRUD (Create/Read/Update/Delete) operations.

Chapter 2, The Other Way Around – Database First Approach, explains about reverse engineering and existing database using EF Core. It guides us through performing migrations and also helps us in retaining model changes that won't be lost during migrations.

Chapter 3, Relationships – Terminology and Conventions, provides knowledge about relationship terms related to entities, keys, and properties. We will also see different conventions available with respect to relationships.

Chapter 4, Building Relationships – Understanding Mapping, helps you explore multiple relationship techniques and explains how to leverage them in your application design. We will also explore how to create relationships using Fluent API.

Chapter 5, Know the Validation – Explore Inbuilt Validations, teaches you about how validation works in the framework, explores built-in validations, shows how they should be configured, covers the patterns each validation expects from the user, and shows how the validation error is rendered by the MVC engine.

Chapter 6, Save Yourself – Hack Proof Your Entities, helps us with adding validations, explains why we need validations on both the client side and server side, and shows how to achieve it. It also introduces custom validation, and how to create client-side logic for validation and remote validation.

Chapter 7, Going Raw – Leveraging SQL Queries in LINQ, teaches you about executing Raw SQL Queries while also teaching you how to execute parameterized queries, compose with LINQ, and, finally, execute without a DbSet or POCO object.

Chapter 8, Query Is All We Need – Query Object Pattern, helps you understand the Query Object pattern, and extend EF to leverage query objects.

Chapter 9, Fail Safe Mechanism – Transactions, helps you understand the existing behavior of transactions, how to create regular/cross-context transactions, and how to use external DBTransactions.

Chapter 10, Make It Real – Handling Concurrencies, elaborates on how concurrency is wired in EF and how to handle it. It explains concurrency tokens in detail and shows how to create a fail-safe mechanism using it.

Chapter 11, Performance – It's All About Execution Time, teaches you how to improve EF's performance by properly utilizing the framework, reducing abuses, and much more.

Chapter 12, Isolation – Building a Multi-Tenant Database, explores row-level security and multi-tenant databases in detail.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime