Class DbContextHandleOptions<TContext>
Options for creating DbContext test handles.
Inherited Members
Namespace: FastMoq
Assembly: FastMoq.Database.dll
Syntax
public sealed class DbContextHandleOptions<TContext> where TContext : DbContext
Type Parameters
| Name | Description |
|---|---|
| TContext |
Properties
DatabaseName
Gets or sets the database name used for the real in-memory mode.
Declaration
public string? DatabaseName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Mode
Gets or sets the DbContext provisioning mode.
Declaration
public DbContextTestMode Mode { get; set; }
Property Value
| Type | Description |
|---|---|
| DbContextTestMode |
RealContextFactory
Gets or sets an optional factory for constructing a real DbContext instance.
Declaration
public Func<DbContextOptions<TContext>, TContext>? RealContextFactory { get; set; }
Property Value
| Type | Description |
|---|---|
| Func<DbContextOptions<TContext>, TContext> |