InMemoryDatabaseCreator InMemoryDatabaseCreator Class

Definition

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 class InMemoryDatabaseCreator : IDatabaseCreator
Public Class InMemoryDatabaseCreator
    Implements IDatabaseCreator
Inheritance
System.ObjectSystem.Object
InMemoryDatabaseCreatorInMemoryDatabaseCreator
Implements

Inherited Members

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()

Constructors

InMemoryDatabaseCreator(IInMemoryDatabase, IModel) InMemoryDatabaseCreator(IInMemoryDatabase, 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 InMemoryDatabaseCreator(IInMemoryDatabase database, IModel model)
Public Sub New(database As IInMemoryDatabase, model As IModel)
Parameters
model
IModel IModel

Methods

EnsureCreated() EnsureCreated()

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 EnsureCreated()
Public Overridable Function EnsureCreated As Boolean
Returns
System.Boolean System.Boolean

EnsureCreatedAsync(CancellationToken) EnsureCreatedAsync(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 virtual Task<bool> EnsureCreatedAsync(CancellationToken cancellationToken = null)
Public Overridable Function EnsureCreatedAsync(cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)
Parameters
cancellationToken
System.Threading.CancellationToken System.Threading.CancellationToken
Returns
System.Threading.Tasks.Task<System.Boolean> System.Threading.Tasks.Task(Of System.Boolean)

EnsureDeleted() EnsureDeleted()

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 EnsureDeleted()
Public Overridable Function EnsureDeleted As Boolean
Returns
System.Boolean System.Boolean

EnsureDeletedAsync(CancellationToken) EnsureDeletedAsync(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 virtual Task<bool> EnsureDeletedAsync(CancellationToken cancellationToken = null)
Public Overridable Function EnsureDeletedAsync(cancellationToken As CancellationToken = Nothing) As Task(Of Boolean)
Parameters
cancellationToken
System.Threading.CancellationToken System.Threading.CancellationToken
Returns
System.Threading.Tasks.Task<System.Boolean> System.Threading.Tasks.Task(Of System.Boolean)