Entity Framework Core 使用者入門Getting Started with Entity Framework Core

安裝 EF CoreInstalling EF Core

在不同平台與熱門 IDE 中將 EF Core 新增至您應用程式的必要步驟摘要。A summary of the steps necessary to add EF Core to your application in different platforms and popular IDEs.

逐步教學課程Step-by-step Tutorials

這些入門教學課程不要求必須事先了解 Entity Framework Core 或任何特定 IDE。These introductory tutorials require no previous knowledge of Entity Framework Core or any particular IDE. 這些教學課程會帶您逐步建立簡單的應用程式,以查詢和儲存資料庫中的資料。They will take you step-by-step through the creation of a simple application that queries and saves data from a database. 我們提供了多項教學課程,協助您在各種作業系統及應用程式類型上開始著手。We have provided tutorials to get you started on various operating systems and application types.

Entity Framework Core 可根據現有資料庫建立模型,或根據您的模型為您建立資料庫。Entity Framework Core can create a model based on an existing database, or create a database for you based on your model. 教學課程會示範這兩種方法。There are tutorials that demonstrate both of these approaches.

注意

這些教學課程及隨附的範例已升級為使用 EF Core 2.1。These tutorials and the accompanying samples have been updated to use EF Core 2.1. 不過,在大多數情況下,只要對指示進行最少的修改,應該就能夠建立使用舊版本的應用程式。However, in the majority of cases it should be possible to create applications that use previous releases, with minimal modification to the instructions.