-
Notifications
You must be signed in to change notification settings - Fork 0
UtilityExtensions.GetDbContext
Mike King edited this page Sep 30, 2025
·
2 revisions
| Overloads | |
|---|---|
| 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<>. |
Gets the Microsoft.EntityFrameworkCore.DbContext object that is used by the specified Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade.
public static Microsoft.EntityFrameworkCore.DbContext GetDbContext(this Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade database);database Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade
The Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade.
Microsoft.EntityFrameworkCore.DbContext
Microsoft.EntityFrameworkCore.DbContext.
Gets the Microsoft.EntityFrameworkCore.DbContext object that is used by the specified System.Linq.IQueryable<>.
public static Microsoft.EntityFrameworkCore.DbContext GetDbContext(this System.Linq.IQueryable source);source System.Linq.IQueryable
The source query System.Linq.IQueryable<>.
Microsoft.EntityFrameworkCore.DbContext
Microsoft.EntityFrameworkCore.DbContext.