Skip to content

UtilityExtensions

Mike King edited this page Oct 29, 2025 · 3 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<>.
UseCaseInsensitiveCollation(this ModelBuilder, string) Use Case Insensitive Collation.

Clone this wiki locally