Interface IInternalServiceCollectionMap
- Namespace
- Microsoft.EntityFrameworkCore.Infrastructure
- Assembly
- Microsoft.EntityFrameworkCore.dll
Exposes methods allowing providers to register EF service dependency objects on the internal service provider.
This type is typically used by database providers (and other extensions). It is generally not used in application code.
public interface IInternalServiceCollectionMap
Remarks
See Implementation of database providers and extensions for more information and examples.
Methods
AddDependencyScoped<TDependencies>()
Adds a Scoped dependency object.
IInternalServiceCollectionMap AddDependencyScoped<TDependencies>()
Returns
- IInternalServiceCollectionMap
The same collection map so that further methods can be chained.
Type Parameters
TDependencies
The dependency type.
AddDependencySingleton<TDependencies>()
Adds a Singleton dependency object.
IInternalServiceCollectionMap AddDependencySingleton<TDependencies>()
Returns
- IInternalServiceCollectionMap
The same collection map so that further methods can be chained.
Type Parameters
TDependencies
The dependency type.