DKNet.EfCore.Relational.Helpers 10.1.15

dotnet add package DKNet.EfCore.Relational.Helpers --version 10.1.15
                    
NuGet\Install-Package DKNet.EfCore.Relational.Helpers -Version 10.1.15
                    
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.15" />
                    
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.15" />
                    
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 10.1.15
                    
#r "nuget: DKNet.EfCore.Relational.Helpers, 10.1.15"
                    
#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.15
                    
#: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.15
                    
Install as a Cake Addin
#tool nuget:?package=DKNet.EfCore.Relational.Helpers&version=10.1.15
                    
Install as a Cake Tool

DKNet.EfCore.Relational.Helpers

Small set of DbContext extension methods for relational-provider bookkeeping: table creation without a migration, an already-open connection, resolved schema/table names, and table-existence checks.

Install

dotnet add package DKNet.EfCore.Relational.Helpers

Features

  • CreateTableAsync<TEntity>() — ensures the database exists and creates the table for TEntity if it isn't already there (one-shot, not a migration)
  • GetDbConnection() — returns the DbContext's underlying DbConnection, opening it if closed
  • GetTableName<TEntity>() — resolves the schema and table name EF Core mapped for TEntity (with the SQL Server dbo default applied)
  • TableExistsAsync<TEntity>() — checks whether the table for TEntity exists in the database

Quick start

using DKNet.EfCore.Relational.Helpers;

if (!await dbContext.TableExistsAsync<Product>())
{
    await dbContext.CreateTableAsync<Product>();
}

var (schema, table) = dbContext.GetTableName<Product>();

Documentation

Full method reference, gotchas, and provider notes: https://github.com/baoduy/DKNet/blob/dev/docs/EfCore/DKNet.EfCore.Relational.Helpers.md

License

MIT © drunkcoding

Repository

https://github.com/baoduy/DKNet

Product 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.

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