InMemoryTestStore InMemoryTestStore Class

Definition

public class InMemoryTestStore : TestStore, IDisposable
Public Class InMemoryTestStore
    Inherits TestStore
    Implements IDisposable
Inheritance
System.ObjectSystem.Object
InMemoryTestStoreInMemoryTestStore
Implements
System.IDisposableSystem.IDisposable

Inherited Members

Microsoft.EntityFrameworkCore.Specification.Tests.TestStore

CreateShared(System.String, System.Action)CreateShared(System.String, System.Action)

System.Object

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

Methods

CreateScratch(Action, Action) CreateScratch(Action, Action)

public static InMemoryTestStore CreateScratch(Action initializeDatabase, Action deleteDatabase)
Public Shared Function CreateScratch(initializeDatabase As Action, deleteDatabase As Action) As InMemoryTestStore
Parameters
initializeDatabase
System.Action System.Action
deleteDatabase
System.Action System.Action
Returns

CreateScratch(Action, IServiceProvider) CreateScratch(Action, IServiceProvider)

public static InMemoryTestStore CreateScratch(Action initializeDatabase, IServiceProvider serviceProvider)
Public Shared Function CreateScratch(initializeDatabase As Action, serviceProvider As IServiceProvider) As InMemoryTestStore
Parameters
initializeDatabase
System.Action System.Action
serviceProvider
System.IServiceProvider System.IServiceProvider
Returns

Dispose() Dispose()

public override void Dispose()
Public Overrides Sub Dispose
Overrides

GetOrCreateShared(String, Action) GetOrCreateShared(String, Action)

public static InMemoryTestStore GetOrCreateShared(string name, Action initializeDatabase)
Public Shared Function GetOrCreateShared(name As String, initializeDatabase As Action) As InMemoryTestStore
Parameters
name
System.String System.String
initializeDatabase
System.Action System.Action
Returns