InMemoryServiceCollectionExtensions InMemoryServiceCollectionExtensions Class

Definition

In-memory specific extension methods for .

public static class InMemoryServiceCollectionExtensions
Public Module InMemoryServiceCollectionExtensions
Inheritance
System.ObjectSystem.Object
InMemoryServiceCollectionExtensionsInMemoryServiceCollectionExtensions

Methods

AddEntityFrameworkInMemoryDatabase(IServiceCollection) AddEntityFrameworkInMemoryDatabase(IServiceCollection)

Adds the services required by the in-memory database provider for Entity Framework to an . You use this method when using dependency injection in your application, such as with ASP.NET. For more information on setting up dependency injection, see http://go.microsoft.com/fwlink/?LinkId=526890.

You only need to use this functionality when you want Entity Framework to resolve the services it uses from an external dependency injection container. If you are not using an external dependency injection container, Entity Framework will take care of creating the services it requires.

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