InMemoryDbContextOptionsBuilder Class

Definition

Allows in-memory specific configuration to be performed on DbContextOptions.

C#
public class InMemoryDbContextOptionsBuilder
C#
public class InMemoryDbContextOptionsBuilder : Microsoft.EntityFrameworkCore.Infrastructure.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

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

Applies to

Product Versions
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0