InMemoryDatabase InMemoryDatabase Class

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

Syntax

Declaration

public class InMemoryDatabase : Database, IInMemoryDatabase, IDatabasePublic Class InMemoryDatabase
    Inherits Database
    Implements IInMemoryDatabase, IDatabase

Inheritance Hierarchy

  • System.Object
    System.Object
  • InMemoryDatabase
    InMemoryDatabase

Inherited Members

CompileQuery<TResult>(QueryModel),
CompileQuery(Of TResult)(QueryModel),
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

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

Properties summary

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

Methods summary

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

Constructors

  • InMemoryDatabase(IQueryCompilationContextFactory, IInMemoryStoreSource, IDbContextOptions, ILogger<InMemoryDatabase>)
    InMemoryDatabase(IQueryCompilationContextFactory, IInMemoryStoreSource, IDbContextOptions, ILogger(Of InMemoryDatabase))

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public InMemoryDatabase(IQueryCompilationContextFactory queryCompilationContextFactory, IInMemoryStoreSource storeSource, IDbContextOptions options, ILogger<InMemoryDatabase> logger)Public Sub New(queryCompilationContextFactory As IQueryCompilationContextFactory, storeSource As IInMemoryStoreSource, options As IDbContextOptions, logger As ILogger(Of InMemoryDatabase))

    Parameters

Properties

  • Store
    Store

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public virtual IInMemoryStore Store { get; }Public Overridable ReadOnly Property Store As IInMemoryStore

    Property Value

Methods

  • CompileAsyncQuery<TResult>(QueryModel)
    CompileAsyncQuery(Of TResult)(QueryModel)

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public override Func<QueryContext, IAsyncEnumerable<TResult>> CompileAsyncQuery<TResult>(QueryModel queryModel)Public Overrides Function CompileAsyncQuery(Of TResult)(queryModel As QueryModel) As Func(Of QueryContext, IAsyncEnumerable(Of TResult))

    Parameters

    • queryModel
      QueryModel
      QueryModel

    Returns

    • System.Func<T, TResult><QueryContext, IAsyncEnumerable<><TResult>>
      System.Func<T, TResult>(Of QueryContext, IAsyncEnumerable<>(Of TResult))
  • EnsureDatabaseCreated(IModel)
    EnsureDatabaseCreated(IModel)

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public virtual bool EnsureDatabaseCreated(IModel model)Public Overridable Function EnsureDatabaseCreated(model As IModel) As Boolean

    Parameters

    Returns

    • System.Boolean
      System.Boolean
  • SaveChanges(IReadOnlyList<IUpdateEntry>)
    SaveChanges(IReadOnlyList(Of IUpdateEntry))

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public override int SaveChanges(IReadOnlyList<IUpdateEntry> entries)Public Overrides Function SaveChanges(entries As IReadOnlyList(Of IUpdateEntry)) As Integer

    Parameters

    • entries
      System.Collections.Generic.IReadOnlyList<T><IUpdateEntry>
      System.Collections.Generic.IReadOnlyList<T>(Of IUpdateEntry)

    Returns

    • System.Int32
      System.Int32
  • SaveChangesAsync(IReadOnlyList<IUpdateEntry>, CancellationToken)
    SaveChangesAsync(IReadOnlyList(Of IUpdateEntry), CancellationToken)

    This API supports the Entity Framework Core infrastructure and is not intended to be used directly from your code. This API may change or be removed in future releases.

    public override Task<int> SaveChangesAsync(IReadOnlyList<IUpdateEntry> entries, CancellationToken cancellationToken = null)Public Overrides Function SaveChangesAsync(entries As IReadOnlyList(Of IUpdateEntry), cancellationToken As CancellationToken = Nothing) As Task(Of Integer)

    Parameters

    • entries
      System.Collections.Generic.IReadOnlyList<T><IUpdateEntry>
      System.Collections.Generic.IReadOnlyList<T>(Of IUpdateEntry)
    • cancellationToken
      System.Threading.CancellationToken
      System.Threading.CancellationToken

    Returns

    • System.Threading.Tasks.Task<TResult><System.Int32>
      System.Threading.Tasks.Task<TResult>(Of System.Int32)

Details

Assembly

Microsoft.EntityFrameworkCore.InMemory.dll