Skip to content

UtilityExtensions

Mike King edited this page Sep 8, 2026 · 5 revisions

UtilityExtensions Class

Utility Extensions.

public static class UtilityExtensions

Inheritance System.Object → UtilityExtensions

Methods
CreateGuid(this DatabaseFacade) Create a Guid that is suitable for use as a database key value.
DoesDatabaseExistAsync(this DatabaseFacade, CancellationToken) Check if database exists.
GetDbContext(this DatabaseFacade) Gets the Microsoft.EntityFrameworkCore.DbContext object that is used by the specified Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade.
GetDbContext(this IQueryable) Gets the Microsoft.EntityFrameworkCore.DbContext object that is used by the specified System.Linq.IQueryable<>.
GetDelimitedIdentifier(this DatabaseFacade, string) Generates the delimited SQL representation of an identifier (column name, table name, etc.).
GetDelimitedIdentifier(this DatabaseFacade, string, string) Generates the delimited SQL representation of an identifier (column name, table name, etc.).
GetDelimitedIdentifier(this DatabaseFacade, StringBuilder, string) Appends the delimited SQL representation of an identifier (column name, table name, etc.).
GetDelimitedIdentifier(this DatabaseFacade, StringBuilder, string, string) Appends the delimited SQL representation of an identifier (column name, table name, etc.).
UseCaseInsensitiveCollation(this ModelBuilder, string) Use Case Insensitive Collation.

Clone this wiki locally