DbDependencyResolverExtensions.GetService Method
Assembly: EntityFramework (in EntityFramework.dll)
Name | Description | |
---|---|---|
![]() ![]() | GetService(IDbDependencyResolver, Type) | Calls GetService passing the given type argument and using null for the name argument. |
![]() ![]() | GetService<T>(IDbDependencyResolver) | Calls GetService passing the generic type of the method as the type argument and null for the name argument. |
![]() ![]() | GetService<T>(IDbDependencyResolver, Object) | Calls GetService passing the generic type of the method and the given name as arguments. |
DbDependencyResolverExtensions.GetService Method (IDbDependencyResolver, Type)
Calls GetService passing the given type argument and using null for the name argument.
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.ObjectThe resolved dependency, or null if the resolver could not resolve it.
DbDependencyResolverExtensions.GetService<T> Method (IDbDependencyResolver)
Calls GetService 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.
Type Parameters
- T
The contract type to resolve.
DbDependencyResolverExtensions.GetService<T> Method (IDbDependencyResolver, Object)
Calls GetService passing the generic type of the method and the given name as arguments.
Parameters
- resolver
-
Type:
System.Data.Entity.Infrastructure.DependencyResolution.IDbDependencyResolver
The resolver to use.
- key
-
Type:
System.Object
The key of the dependency to resolve.
Type Parameters
- T
The contract type to resolve.