Mocker..::..GetDbContext<(Of <(<'TContext>)>)> Method (Func<(Of <(<'DbContextOptions, TContext>)>)>)
Gets the database context.
Namespace:
FastMoqAssembly: FastMoq.Core (in FastMoq.Core.dll)
Syntax
public TContext GetDbContext<TContext>( Func<DbContextOptions, TContext> newObjectFunc ) where TContext : DbContext
Public Function GetDbContext(Of TContext As DbContext) ( _ newObjectFunc As Func(Of DbContextOptions, TContext) _ ) As TContext
public: generic<typename TContext> where TContext : DbContext TContext GetDbContext( Func<DbContextOptions^, TContext>^ newObjectFunc )
Type Parameters
- TContext
- The type of the t context.
Parameters
- newObjectFunc
- Type: Func<(Of <(<'DbContextOptions, TContext>)>)>
The new object function.