Code Quality Rank: L1
Monthly Downloads: 170,050
Programming language: C#
License: Microsoft Public License
Tags: SQL     Framework     Server     Data     Entity     Core     Entity-framework-core     EF     O/RM    
Latest version: v3.1.6

Entity Framework alternatives and similar packages

Based on the "ORM" category

Do you think we are missing an alternative of Entity Framework or a related project?

Add another 'ORM' Package



build status test results

This repository is home to the following .NET Foundation projects. These projects are maintained by Microsoft and licensed under the [Apache License, Version 2.0](LICENSE.txt).

Entity Framework Core

latest version preview version downloads

EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations. EF Core works with SQL Server, Azure SQL Database, SQLite, Azure Cosmos DB, MySQL, PostgreSQL, and other databases through a provider plugin API.


EF Core is available on NuGet. Install the provider package corresponding to your target database. See the list of providers in the docs for additional databases.

dotnet add package Microsoft.EntityFrameworkCore.SqlServer
dotnet add package Microsoft.EntityFrameworkCore.Sqlite
dotnet add package Microsoft.EntityFrameworkCore.Cosmos

Use the --version option to specify a preview version to install.

Use the daily builds to verify bug fixes and provide early feedback.


The following code demonstrates basic usage of EF Core. For a full tutorial configuring the DbContext, defining the model, and creating the database, see getting started in the docs.

using (var db = new BloggingContext())
    // Inserting data into the database
    db.Add(new Blog { Url = "http://blogs.msdn.com/adonet" });

    // Querying
    var blog = db.Blogs
        .OrderBy(b => b.BlogId)

    // Updating
    blog.Url = "https://devblogs.microsoft.com/dotnet";
        new Post
            Title = "Hello World",
            Content = "I wrote an app using EF Core!"

    // Deleting


latest version preview version downloads

Microsoft.Data.Sqlite is a lightweight ADO.NET provider for SQLite. The EF Core provider for SQLite is built on top of this library. However, it can also be used independently or with other data access libraries.


The latest stable version is available on NuGet.

dotnet add package Microsoft.Data.Sqlite

Use the --version option to specify a preview version to install.

Use the daily builds to verify bug fixes and provide early feedback.


This library implements the common ADO.NET abstractions for connections, commands, data readers, and so on. For more information, see Microsoft.Data.Sqlite on Microsoft Docs.

using (var connection = new SqliteConnection("Data Source=Blogs.db"))

    var command = connection.CreateCommand();
    command.CommandText = "SELECT Url FROM Blogs";

    using (var reader = command.ExecuteReader())
        while (reader.Read())
            var url = reader.GetString(0);

Getting support

If you have a specific question about using these projects, we encourage you to ask it on Stack Overflow. If you encounter a bug or would like to request a feature, submit an issue. For more details, see [getting support](.github/SUPPORT.md).


If you're interested in contributing to these projects, see [contributing](.github/CONTRIBUTING.md).

See also

*Note that all licence references and agreements mentioned in the Entity Framework README section above are relevant to that project's source code only.