InMemoryDbContextOptionsBuilder Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Allows in-memory specific configuration to be performed on DbContextOptions.
public class InMemoryDbContextOptionsBuilder
public class InMemoryDbContextOptionsBuilder : Microsoft.EntityFrameworkCore.Infrastructure.IInMemoryDbContextOptionsBuilderInfrastructure
type InMemoryDbContextOptionsBuilder = class
type InMemoryDbContextOptionsBuilder = class
interface IInMemoryDbContextOptionsBuilderInfrastructure
Public Class InMemoryDbContextOptionsBuilder
Public Class InMemoryDbContextOptionsBuilder
Implements IInMemoryDbContextOptionsBuilderInfrastructure
- Inheritance
-
InMemoryDbContextOptionsBuilder
- Implements
Remarks
Instances of this class are returned from a call to UseInMemoryDatabase(DbContextOptionsBuilder, String, Action<InMemoryDbContextOptionsBuilder>) and it is not designed to be directly constructed in your application code.
See Using DbContextOptions, and The EF Core in-memory database provider for more information and examples.
Constructors
InMemoryDbContextOptionsBuilder(DbContextOptionsBuilder) |
Initializes a new instance of the InMemoryDbContextOptionsBuilder class. |
Properties
OptionsBuilder |
Clones the configuration in this builder. |
Methods
EnableNullChecks(Boolean) |
Enables nullability check for all properties across all entities within the in-memory database. |
Explicit Interface Implementations
IInMemoryDbContextOptionsBuilderInfrastructure.OptionsBuilder |
Gets the core options builder. |
Applies to
Entity Framework