InMemoryDbContextOptionsBuilder Class
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
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.
In |
Initializes a new instance of the InMemoryDbContextOptionsBuilder class. |
Options |
Clones the configuration in this builder. |
Enable |
Enables nullability check for all properties across all entities within the in-memory database. |
IIn |
Gets the core options builder. |
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 |
Entity Framework feedback
Entity Framework is an open source project. Select a link to provide feedback: