Share via


DbDependencyResolverExtensions.GetServices Method

Definition

Overloads

GetServices(IDbDependencyResolver, Type)

Calls GetServices(Type, Object) passing the given type argument and using null for the name argument.

GetServices<T>(IDbDependencyResolver)

Calls GetServices(Type, Object) passing the generic type of the method as the type argument and null for the name argument.

GetServices<T>(IDbDependencyResolver, Object)

Calls GetServices(Type, Object) passing the generic type of the method and the given name as arguments.

GetServices(IDbDependencyResolver, Type)

Calls GetServices(Type, Object) passing the given type argument and using null for the name argument.

public static System.Collections.Generic.IEnumerable<object> GetServices (this System.Data.Entity.Infrastructure.DependencyResolution.IDbDependencyResolver resolver, Type type);
static member GetServices : System.Data.Entity.Infrastructure.DependencyResolution.IDbDependencyResolver * Type -> seq<obj>

Parameters

resolver
IDbDependencyResolver

The resolver to use.

type
Type

The contract type to resolve.

Returns

All resolved dependencies, or an IEnumerable<T> if no services are resolved.

Applies to

GetServices<T>(IDbDependencyResolver)

Calls GetServices(Type, Object) passing the generic type of the method as the type argument and null for the name argument.

public static System.Collections.Generic.IEnumerable<T> GetServices<T> (this System.Data.Entity.Infrastructure.DependencyResolution.IDbDependencyResolver resolver);
static member GetServices : System.Data.Entity.Infrastructure.DependencyResolution.IDbDependencyResolver -> seq<'T>
<Extension()>
Public Function GetServices(Of T) (resolver As IDbDependencyResolver) As IEnumerable(Of T)

Type Parameters

T

The contract type to resolve.

Parameters

resolver
IDbDependencyResolver

The resolver to use.

Returns

All resolved dependencies, or an IEnumerable<T> if no services are resolved.

Applies to

GetServices<T>(IDbDependencyResolver, Object)

Calls GetServices(Type, Object) passing the generic type of the method and the given name as arguments.

public static System.Collections.Generic.IEnumerable<T> GetServices<T> (this System.Data.Entity.Infrastructure.DependencyResolution.IDbDependencyResolver resolver, object key);
static member GetServices : System.Data.Entity.Infrastructure.DependencyResolution.IDbDependencyResolver * obj -> seq<'T>
<Extension()>
Public Function GetServices(Of T) (resolver As IDbDependencyResolver, key As Object) As IEnumerable(Of T)

Type Parameters

T

The contract type to resolve.

Parameters

resolver
IDbDependencyResolver

The resolver to use.

key
Object

The key of the dependency to resolve.

Returns

All resolved dependencies, or an IEnumerable<T> if no services are resolved.

Applies to