Mastering Entity Framework Core 2.0: Dive into entities, relationships, querying, performance optimization, and more, to learn efficient data-driven development
暫譯: 精通 Entity Framework Core 2.0:深入了解實體、關係、查詢、性能優化等,學習高效的數據驅動開發

Prabhakaran Anbazhagan

  • 出版商: Packt Publishing
  • 出版日期: 2017-12-21
  • 售價: $2,210
  • 貴賓價: 9.5$2,100
  • 語言: 英文
  • 頁數: 386
  • 裝訂: Paperback
  • ISBN: 1788294130
  • ISBN-13: 9781788294133
  • 相關分類: Entity
  • 海外代購書籍(需單獨結帳)

相關主題

商品描述

Learn how to leverage the features of the new Entity Framework Core APIs and use them to build pure .NET Core applications.

Key Features

  • Learn how to effectively manage your database to make it more productive and maintainable.
  • Write simplified queries using LINQ to acquire the desired data easily
  • Raise the abstraction level from data to objects so teams can function independently, resulting in easily maintainable code

Book Description

Being able to create and maintain dataoriented applications has become crucial in modern programming. This is why Microsoft came up with Entity Framework so architects can optimize storage requirements while also writing efficient and maintainable application code. This book is a comprehensive guide that will show how to utilize the power of the Entity Framework to build efficient .NET Core applications. It not only teaches all the fundamentals of Entity Framework Core but also demonstrates how to use it practically so you can implement it in your software development.

The book is divided into three modules. The first module focuses on building entities and relationships. Here you will also learn about different mapping techniques, which will help you choose the one best suited to your application design. Once you have understood the fundamentals of the Entity Framework, you will move on to learn about validation and querying in the second module. It will also teach you how to execute raw SQL queries and extend the Entity Framework to leverage Query Objects using the Query Object Pattern. The final module of the book focuses on performance optimization and managing the security of your application. You will learn to implement failsafe mechanisms using concurrency tokens. The book also explores rowlevel security and multitenant databases in detail.

By the end of the book, you will be proficient in implementing Entity Framework on your .NET Core applications.

What you will learn

  • Create databases and perform CRUD operations on them
  • Understand and build relationships (related to entities, keys, and properties)
  • Understand inbuilt, custom, and remote validation (both client and server side)
  • You will learn to handle concurrency to build responsive applications
  • You will handle transactions and multitenancy while also improving performance

Who This Book Is For

This book is for .NET Core developers who would like to integrate EF Core in their application. Prior knowledge of .NET Core and C# is assumed.

Table of Contents

  1. Kickstart Introduction to Entity Framework Core
  2. The Other Way Around - Database First Approach
  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 MultiTenant Database

商品描述(中文翻譯)

學習如何利用新的 Entity Framework Core API 的特性,並使用它們來構建純 .NET Core 應用程式。

主要特點



  • 學習如何有效管理資料庫,使其更具生產力和可維護性。

  • 使用 LINQ 撰寫簡化查詢,輕鬆獲取所需資料。

  • 將抽象層級從資料提升到物件,使團隊能夠獨立運作,從而產生易於維護的程式碼。

書籍描述


能夠創建和維護以資料為導向的應用程式在現代程式設計中變得至關重要。這就是為什麼微軟推出 Entity Framework,以便架構師可以優化儲存需求,同時撰寫高效且可維護的應用程式程式碼。本書是一本全面的指南,將展示如何利用 Entity Framework 的力量來構建高效的 .NET Core 應用程式。它不僅教授 Entity Framework Core 的所有基本概念,還展示如何實際使用它,以便您能在軟體開發中實施。


本書分為三個模組。第一個模組專注於構建實體和關係。在這裡,您還將學習不同的映射技術,這將幫助您選擇最適合您應用程式設計的技術。一旦您理解了 Entity Framework 的基本概念,您將進入第二個模組,學習驗證和查詢。它還將教您如何執行原始 SQL 查詢,並擴展 Entity Framework 以利用查詢物件,使用查詢物件模式。本書的最後一個模組專注於性能優化和管理應用程式的安全性。您將學習如何使用併發令牌實施故障安全機制。本書還詳細探討了行級安全性和多租戶資料庫。


在本書結束時,您將能夠熟練地在您的 .NET Core 應用程式中實施 Entity Framework。

您將學到什麼



  • 創建資料庫並對其執行 CRUD 操作

  • 理解並建立關係(與實體、鍵和屬性相關)

  • 理解內建、自定義和遠端驗證(包括客戶端和伺服器端)

  • 學習處理併發以構建響應式應用程式

  • 處理交易和多租戶,同時提高性能

本書適合誰


本書適合希望在其應用程式中整合 EF Core 的 .NET Core 開發人員。假設您具備 .NET Core 和 C# 的先前知識。

目錄



  1. 快速入門 Entity Framework Core

  2. 反向操作 - 資料庫優先方法

  3. 關係 - 術語和慣例

  4. 建立關係 - 理解映射

  5. 了解驗證 - 探索內建驗證

  6. 保護自己 - 防駭您的實體

  7. 使用原始 SQL - 在 LINQ 中利用 SQL 查詢

  8. 查詢是我們所需的一切 - 查詢物件模式

  9. 故障安全機制 - 交易

  10. 實現真實 - 處理併發

  11. 性能 - 一切都關乎執行時間

  12. 隔離 - 建立多租戶資料庫