DuckDB.EFCore
1.0.3
dotnet add package DuckDB.EFCore --version 1.0.3
NuGet\Install-Package DuckDB.EFCore -Version 1.0.3
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.
<PackageReference Include="DuckDB.EFCore" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DuckDB.EFCore" Version="1.0.3" />
<PackageReference Include="DuckDB.EFCore" />
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.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DuckDB.EFCore, 1.0.3"
#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.3
#: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.3
#tool nuget:?package=DuckDB.EFCore&version=1.0.3
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<Blog> 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<MyDbContext>(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.3)
- Microsoft.EntityFrameworkCore (>= 10.0.9)
- Microsoft.EntityFrameworkCore.Abstractions (>= 10.0.9)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.9)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.