efcore
EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
What is efcore?
EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations.
Overview of efcore
What it is
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, MariaDB, MySQL, PostgreSQL, and other databases through a provider plugin API.
Key features
- LINQ queries for data retrieval
- Change tracking to detect and persist modifications
- Update and delete operations
- Schema migrations for evolving the database model
- Support for multiple databases via a provider plugin API
Use cases
EF Core is used in .NET applications that require object-relational mapping, such as web applications, APIs, and desktop applications. It is suitable for scenarios where developers need to interact with relational databases using .NET objects and LINQ.
Getting started
Install the provider package for your target database. For example:
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. For a full tutorial on configuring the DbContext, defining the model, and creating the database, see the repository README.
License and pricing
EF Core is licensed under the MIT License and is open source.
Based on the project's public README and repository metadata.