警告
This documentation is for EF7 onwards. For EF6.x and earlier release see http://msdn.com/data/ef. 本文档是基于EF7版本.对于EF6.x及更早的版本请参见 http://msdn.com/data/ef.
Database Providers¶
- The following providers are either available or being developed:
EntityFramework.MicrosoftSqlServer¶
Database Engine: Microsoft SQL Server (2008 onwards)
Platforms: Full .NET (4.5.1 onwards), DNX/ASP.NET 5 (dnx451 and dnxcore50), Mono (4.2.0 onwards)
警告
Using this provider on Mono will make use of the Mono SQL Client implementation, which has a number of known issues. For example, it does not support secure connections (SSL).
Status: Pre-release EntityFramework.MicrosoftSqlServer package on NuGet.org that supports the latest EF7 pre-release
Project Site: EntityFramework GitHub project
Getting Started: See Getting Started on Full .NET (Console, WinForms, WPF, etc.) or Getting Started on ASP.NET 5 for a walkthrough that uses this provider. The UnicornStore sample application also uses this provider.
EntityFramework.SQLite¶
Database Engine: SQLite (3.7 onwards)
Platforms: Full .NET (4.5.1 onwards), DNX/ASP.NET 5 (dnx451 and dnxcore50), Mono (4.2.0 onwards), Universal Windows Platform (local development only)
Status: Pre-release EntityFramework.SQLite package on NuGet.org that supports the latest EF7 pre-release
Project Site: EntityFramework GitHub project
Getting Started: See Getting Started on Universal Windows Platform, Getting Started on Linux or Getting Started on OSX for walkthroughs that use this provider
EntityFramework.InMemory¶
Database Engine: Built-in in-memory database (designed for testing purposes only)
Platforms: Full .NET (4.5.1 onwards), DNX/ASP.NET 5 (dnx451 and dnxcore50), Mono (4.2.0 onwards), Universal Windows Platform (local development only)
Status: Pre-release EntityFramework.InMemory package on NuGet.org that supports the latest EF7 pre-release
Project Site: EntityFramework GitHub project
Getting Started: See the tests for the UnicornStore sample application for an example of using this provider.
EntityFramework.SqlServerCompact40¶
Database Engine: SQL Server Compact Edition 4.0
Platforms: Full .NET (4.5.1 onwards), DNX/ASP.NET 5 (dnx451 only)
Status: Pre-release EntityFramework.SqlServerCompact40 package on NuGet.org that supports the latest EF7 pre-release
Project Site: ErikEJ/EntityFramework7.SqlServerCompact GitHub Project
Getting Started: See the documentation for this project
EntityFramework.SqlServerCompact35¶
Database Engine: SQL Server Compact Edition 3.5
Platforms: Full .NET (4.5.1 onwards), DNX/ASP.NET 5 (dnx451 only)
Status: Pre-release EntityFramework.SqlServerCompact35 package on NuGet.org that supports the latest EF7 pre-release
Project Site: ErikEJ/EntityFramework7.SqlServerCompact GitHub Project
Getting Started: See the documentation for this project
EntityFramework.Npgsql¶
Database Engine: PostgreSQL
Platforms: Full .NET (4.5.1 onwards), DNX/ASP.NET 5 (dnx451 and dnxcore50), Mono (4.2.0 onwards)
Status: Pre-release EntityFramework7.Npgsql package on NuGet.org that supports the latest EF7 pre-release
Project Site: Npgsql.org
Getting Started: See the getting started documentation at the Npgsql site