DKNet.EfCore.Relational.Helpers
10.0.20
dotnet add package DKNet.EfCore.Relational.Helpers --version 10.0.20
NuGet\Install-Package DKNet.EfCore.Relational.Helpers -Version 10.0.20
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="DKNet.EfCore.Relational.Helpers" Version="10.0.20" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DKNet.EfCore.Relational.Helpers" Version="10.0.20" />
<PackageReference Include="DKNet.EfCore.Relational.Helpers" />
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 DKNet.EfCore.Relational.Helpers --version 10.0.20
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DKNet.EfCore.Relational.Helpers, 10.0.20"
#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 DKNet.EfCore.Relational.Helpers@10.0.20
#: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=DKNet.EfCore.Relational.Helpers&version=10.0.20
#tool nuget:?package=DKNet.EfCore.Relational.Helpers&version=10.0.20
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DKNet.EfCore.Relational.Helpers
A .NET library providing extension methods and helpers for Entity Framework Core’s relational features. Simplifies database connection management, table metadata access, and existence checks for EF Core applications.
Features
- Get and open the underlying
DbConnectionfrom aDbContext - Retrieve schema and table names for entity types
- Check if a table for a given entity exists in the database
- Supports SQL Server and other EF Core relational providers
- .NET 9.0 compatible
Installation
Add the NuGet package to your project:
dotnet add package DKNet.EfCore.Relational.Helpers
Usage
using DKNet.EfCore.Relational.Helpers;
// Get and open the database connection
var conn = await dbContext.GetDbConnection();
// Get schema and table name for an entity
var (schema, tableName) = dbContext.GetTableName<MyEntity>();
// Check if the table exists
bool exists = await dbContext.TableExistsAsync<MyEntity>();
API
GetDbConnection(this DbContext dbContext, CancellationToken cancellationToken = default): Returns an openDbConnection.GetTableName<TEntity>(this DbContext dbContext): Returns the schema and table name for an entity type.TableExistsAsync<TEntity>(this DbContext dbContext, CancellationToken cancellationToken = default): Checks if the table for an entity exists.
License
MIT © 2026 drunkcoding
Repository
https://github.com/baoduy/DKNet
Contributing
Pull requests and issues are welcome!
| 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
- Microsoft.EntityFrameworkCore (>= 10.0.2)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.20 | 93 | 2/2/2026 |
| 10.0.19 | 88 | 1/21/2026 |
| 10.0.18 | 90 | 1/21/2026 |
| 10.0.17 | 90 | 1/19/2026 |
| 10.0.16 | 93 | 1/18/2026 |
| 10.0.15 | 90 | 1/18/2026 |
| 10.0.14 | 88 | 1/18/2026 |
| 10.0.13 | 87 | 1/17/2026 |
| 10.0.12 | 87 | 1/17/2026 |
| 10.0.11 | 94 | 1/17/2026 |
| 10.0.10 | 87 | 1/17/2026 |
| 10.0.9 | 88 | 1/16/2026 |
| 10.0.8 | 92 | 1/16/2026 |
| 10.0.7 | 186 | 11/28/2025 |
| 10.0.6 | 191 | 11/27/2025 |
| 10.0.5 | 191 | 11/24/2025 |
| 10.0.4 | 194 | 11/24/2025 |
| 10.0.3 | 376 | 11/21/2025 |
| 10.0.2 | 410 | 11/20/2025 |
| 0.0.1 | 405 | 11/19/2025 |
Loading failed