DbDependencyResolverExtensions.GetServices Method
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() ![]() | GetServices(IDbDependencyResolver, Type) | Calls GetServices passing the given type argument and using null for the name argument. |
![]() ![]() | GetServices<T>(IDbDependencyResolver) | Calls GetServices passing the generic type of the method as the type argument and null for the name argument. |
![]() ![]() | GetServices<T>(IDbDependencyResolver, Object) | Calls GetServices passing the generic type of the method and the given name as arguments. |
DbDependencyResolverExtensions.GetServices Method (IDbDependencyResolver, Type)
Calls GetServices passing the given type argument and using null for the name argument.
public static IEnumerable<object> GetServices( this IDbDependencyResolver resolver, Type type )
Parameters
- resolver
-
Type:
System.Data.Entity.Infrastructure.DependencyResolution.IDbDependencyResolver
The resolver to use.
- type
-
Type:
System.Type
The contract type to resolve.
Return Value
Type: System.Collections.Generic.IEnumerable<Object>All resolved dependencies, or an IEnumerable<T> if no services are resolved.
DbDependencyResolverExtensions.GetServices<T> Method (IDbDependencyResolver)
Calls GetServices passing the generic type of the method as the type argument and null for the name argument.
Parameters
- resolver
-
Type:
System.Data.Entity.Infrastructure.DependencyResolution.IDbDependencyResolver
The resolver to use.
Return Value
Type: System.Collections.Generic.IEnumerable<T>All resolved dependencies, or an IEnumerable<T> if no services are resolved.
Type Parameters
- T
The contract type to resolve.
DbDependencyResolverExtensions.GetServices<T> Method (IDbDependencyResolver, Object)
Calls GetServices passing the generic type of the method and the given name as arguments.
public static IEnumerable<T> GetServices<T>( this IDbDependencyResolver resolver, object key )
Parameters
- resolver
-
Type:
System.Data.Entity.Infrastructure.DependencyResolution.IDbDependencyResolver
The resolver to use.
- key
-
Type:
System.Object
The key of the dependency to resolve.
Return Value
Type: System.Collections.Generic.IEnumerable<T>All resolved dependencies, or an IEnumerable<T> if no services are resolved.
Type Parameters
- T
The contract type to resolve.