DKNet.EfCore.Relational.Helpers
10.1.2
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package DKNet.EfCore.Relational.Helpers --version 10.1.2
NuGet\Install-Package DKNet.EfCore.Relational.Helpers -Version 10.1.2
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.1.2" />
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.1.2" />
<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.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: DKNet.EfCore.Relational.Helpers, 10.1.2"
#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.1.2
#: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.1.2
#tool nuget:?package=DKNet.EfCore.Relational.Helpers&version=10.1.2
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.11)
- Microsoft.EntityFrameworkCore.Relational (>= 10.0.11)
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.1.15 | 46 | 9/1/2026 |
| 10.1.14 | 45 | 9/1/2026 |
| 10.1.13 | 56 | 8/31/2026 |
| 10.1.12 | 92 | 8/25/2026 |
| 10.1.11 | 93 | 8/24/2026 |
| 10.1.10 | 88 | 8/22/2026 |
| 10.1.9 | 99 | 8/22/2026 |
| 10.1.8 | 81 | 8/21/2026 |
| 10.1.7 | 88 | 8/21/2026 |
| 10.1.6 | 85 | 8/21/2026 |
| 10.1.5 | 91 | 8/20/2026 |
| 10.1.4 | 87 | 8/20/2026 |
| 10.1.3 | 92 | 8/19/2026 |
| 10.1.2 | 88 | 8/19/2026 |
| 10.1.1 | 88 | 8/19/2026 |
| 10.0.36 | 107 | 8/18/2026 |
| 10.0.35 | 107 | 8/5/2026 |
| 10.0.34 | 100 | 8/5/2026 |
| 10.0.33 | 104 | 8/4/2026 |
| 10.0.32 | 109 | 8/3/2026 |
Loading failed