撰寫資料庫提供者Writing a Database Provider

撰寫 Entity Framework Core 資料庫提供者的相關資訊,請參閱因此您想要撰寫的 EF 核心提供者Arthur VickersFor information about writing an Entity Framework Core database provider, see So you want to write an EF Core provider by Arthur Vickers.

EF 核心程式碼基底是開放原始碼,並包含數個可做為參考資料庫提供者。The EF Core code base is open source and contains several database providers that can be used as a reference. 您可以在 https://github.com/aspnet/EntityFramework 尋找原始碼。You can find the source code at https://github.com/aspnet/EntityFramework.

提供者注意標籤The providers-beware label

當您開始在提供者上時,監看 providers-beware 索引標籤上,我們的 GitHub 問題和提取要求。Once you begin work on a provider, watch for the providers-beware label on our GitHub issues and pull requests. 我們可以使用這個標籤以識別可能會影響提供者撰寫人員的變更。We use this label to identify changes that may impact provider writers.

建議的協力廠商提供者命名Suggested naming of third party providers

我們建議使用下列命名的 NuGet 封裝。We suggest using the following naming for NuGet packages. 這是與 EF 核心小組所傳遞的封裝的名稱一致。This is consistent with the names of packages delivered by the EF Core team.

<Optional project/company name>.EntityFrameworkCore.<Database engine name>

例如:For example:

  • Microsoft.EntityFrameworkCore.SqlServer
  • Npgsql.EntityFrameworkCore.PostgreSQL
  • EntityFrameworkCore.SqlServerCompact40