DuckDB.EFCore
1.0.5
dotnet add package DuckDB.EFCore --version 1.0.5
NuGet\Install-Package DuckDB.EFCore -Version 1.0.5
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
For projects that support PackageReference, copy this XML node into the project file to reference the package.
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DuckDB.EFCore --version 1.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DuckDB.EFCore, 1.0.5"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DuckDB.EFCore@1.0.5
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DuckDB.EFCore&version=1.0.5
#tool nuget:?package=DuckDB.EFCore&version=1.0.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DuckDB.EFCore
DuckDB provider for Entity Framework Core.
Installation
Install the DuckDB.EFCore NuGet package:
.NET CLI
dotnet add package DuckDB.EFCore
Package Manager
Install-Package DuckDB.EFCore
Usage
To use DuckDB in your Entity Framework Core application, call UseDuckDB in your OnConfiguring method or when configuring your DbContext in AddDbContext.
Example
public class MyDbContext : DbContext
{
public DbSet Blogs { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseDuckDB("Data Source=my_database.db");
}
}
public class Blog
{
public int Id { get; set; }
public string Title { get; set; }
public string Content { get; set; }
}
Dependency Injection
builder.Services.AddDbContext(options =>
options.UseDuckDB("Data Source=my_database.db"));
Supported Features
- Basic CRUD operations
- LINQ queries
- Migrations
- Transactions
- Raw SQL queries
Acknowledgments
This provider is built on top of the DuckDB.NET ADO.NET provider.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- DuckDB.NET.Data.Full (>= 1.5.5)
- Microsoft.EntityFrameworkCore (>= 10.0.12)
- Microsoft.EntityFrameworkCore.Abstractions (>= 10.0.12)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.12)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on DuckDB.EFCore:
| Package | Downloads |
|---|---|
|
DuckDB.EFCore.NTS
NetTopologySuite (spatial) support for the DuckDB provider for Entity Framework Core. |
GitHub repositories
This package is not used by any popular GitHub repositories.