DKNet.EfCore.Relational.Helpers 9.0.30

There is a newer version of this package available.
See the version list below for details.
dotnet add package DKNet.EfCore.Relational.Helpers --version 9.0.30
                    
NuGet\Install-Package DKNet.EfCore.Relational.Helpers -Version 9.0.30
                    
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="9.0.30" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DKNet.EfCore.Relational.Helpers" Version="9.0.30" />
                    
Directory.Packages.props
<PackageReference Include="DKNet.EfCore.Relational.Helpers" />
                    
Project file
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 9.0.30
                    
#r "nuget: DKNet.EfCore.Relational.Helpers, 9.0.30"
                    
#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@9.0.30
                    
#: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=9.0.30
                    
Install as a Cake Addin
#tool nuget:?package=DKNet.EfCore.Relational.Helpers&version=9.0.30
                    
Install as a Cake Tool

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 DbConnection from a DbContext
  • 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 open DbConnection.
  • 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 Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  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.

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
9.0.38 34 9/24/2025
9.0.37 51 9/23/2025
9.0.36 51 9/23/2025
9.0.35 53 9/23/2025
9.0.34 53 9/23/2025
9.0.33 65 9/21/2025
9.0.32 67 9/21/2025
9.0.31 248 9/19/2025
9.0.30 259 9/18/2025
9.0.29 263 9/18/2025
9.0.28 258 9/17/2025
9.0.27 254 9/17/2025
9.0.26 262 9/16/2025
9.0.25 200 9/15/2025
9.0.24 201 9/15/2025
9.0.23 67 9/6/2025
9.0.22 141 9/3/2025
9.0.21 131 9/1/2025
9.0.20 143 7/15/2025
9.0.19 138 7/14/2025
9.0.18 141 7/14/2025
9.0.17 137 7/14/2025
9.0.16 117 7/11/2025
9.0.15 126 7/11/2025
9.0.14 121 7/11/2025
9.0.13 125 7/11/2025
9.0.12 141 7/8/2025
9.0.11 143 7/8/2025
9.0.10 138 7/7/2025
9.0.9 138 7/2/2025
9.0.8 145 7/2/2025