InMemoryDbContextOptionsBuilder InMemoryDbContextOptionsBuilder Class

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

Instances of this class are returned from a call to UseInMemoryDatabase(DbContextOptionsBuilder, Action<InMemoryDbContextOptionsBuilder>) and it is not designed to be directly constructed in your application code.

Syntax

Declaration

public class InMemoryDbContextOptionsBuilderPublic Class InMemoryDbContextOptionsBuilder

Inheritance Hierarchy

  • System.Object
    System.Object
  • InMemoryDbContextOptionsBuilder
    InMemoryDbContextOptionsBuilder

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Constructors summary

Initializes a new instance of the InMemoryDbContextOptionsBuilder class.

Properties summary

Clones the configuration in this builder.

Constructors

  • InMemoryDbContextOptionsBuilder(DbContextOptionsBuilder)
    InMemoryDbContextOptionsBuilder(DbContextOptionsBuilder)

    Initializes a new instance of the InMemoryDbContextOptionsBuilder class.

    public InMemoryDbContextOptionsBuilder(DbContextOptionsBuilder optionsBuilder)Public Sub New(optionsBuilder As DbContextOptionsBuilder)

    Parameters

Properties

  • OptionsBuilder
    OptionsBuilder

    Clones the configuration in this builder.

    protected virtual DbContextOptionsBuilder OptionsBuilder { get; }Protected Overridable ReadOnly Property OptionsBuilder As DbContextOptionsBuilder

    Property Value

Details

Assembly

Microsoft.EntityFrameworkCore.InMemory.dll