DbProviderServices.GetServices(Type, Object) Method

Definition

Called to resolve additional default provider services when a derived type is registered as an EF provider either using an entry in the application's config file or through code-based registration in DbConfiguration. The implementation of this method in this class uses the resolvers added with the AddDependencyResolver method to resolve dependencies.

public virtual System.Collections.Generic.IEnumerable<object> GetServices (Type type, object key);
abstract member GetServices : Type * obj -> seq<obj>
override this.GetServices : Type * obj -> seq<obj>

Parameters

type
Type

The type of the service to be resolved.

key
Object

An optional key providing additional information for resolving the service.

Returns

All registered services that satisfy the given type and key, or an empty enumeration if there are none.

Implements

Applies to