- Mastering Entity Framework Core 2.0
- Prabhakaran Anbazhagan
- 346字
- 2021-07-02 21:16:35
Kickstart - Introduction to Entity Framework Core
I still remember the days when we were spending quite a lot of time on working with relational databases rather than just focusing on solving business problems; those days are definitely gone. To elaborate, let's jot down the issues we had before ORM:
- Data access layers were not portable, which made it hard to change from one platform to another.
- There were no abstractions, which forced us to write manual mapping between objected-oriented objects and data entities.
- Vendor-specific SQL statements, which requires knowledge to port between different RDBMS systems.
- Relied heavily on triggers and stored procedures.
The entire product development process shifted towards tools and open source platforms, and even Microsoft took that path from .NET Core onward. If we keep spending time on writing code which could be achieved through tools, we might end up looking like cavemen.
The Entity Framework was created to address this concern; it was not introduced with the initial .NET framework but rather was introduced in .NET Framework 3.5 SP1.
If we look closely, it was obvious that the .NET team built it for the following reasons:
- To minimize the time spent by the developers/architects on stuff like abstractions and the portable data access layer
- So that the developers do not require vendor specific SQL knowledge
- So that we can build object-oriented business logic by eradicating triggers and SPs
This book uses Visual Studio 2017 (the latest at the time of writing) and ASP.NET Core 2.0 MVC with Entity Framework 2.0. Even though Entity Framework 2.0 is the latest version, it is still an evolving one, so it would take time for the .NET team to develop all the existing features of Entity Framework 6.2 based on the full .NET Framework.
We will cover the following topics here:
- Prerequisites
- Creating a new project
- Installing Entity Framework 2.0
- Data models
- Database context
- Registering the context in services (.Net Core DI)
- Creating and seeding databases
- Performing CRUD operations
- UML和模式應(yīng)用(原書第3版)
- Oracle Exadata性能優(yōu)化
- Java:Data Science Made Easy
- Elastic Stack應(yīng)用寶典
- Building Minecraft Server Modifications
- Getting Started with Python Data Analysis
- Hands-On JavaScript for Python Developers
- JavaScript程序設(shè)計(jì):基礎(chǔ)·PHP·XML
- Mastering HTML5 Forms
- Application Development with Parse using iOS SDK
- C# 7.0本質(zhì)論
- Microsoft Dynamics GP 2013 Cookbook
- Unreal Engine Game Development Cookbook
- jBPM6 Developer Guide
- Java算法從菜鳥到達(dá)人