IDbDependencyResolver Interface

 

This interface is implemented by any object that can resolve a dependency, either directly or through use of an external container.

Namespace:   System.Data.Entity.Infrastructure.DependencyResolution
Assembly:  EntityFramework (in EntityFramework.dll)

public interface IDbDependencyResolver

NameDescription
System_CAPS_pubmethodGetService(Type, Object)

Attempts to resolve a dependency for a given contract type and optionally a given key. If the resolver cannot resolve the dependency then it must return null and not throw. This allows resolvers to be used in a Chain of Responsibility pattern such that multiple resolvers can be asked to resolve a dependency until one finally does.

System_CAPS_pubmethodGetServices(Type, Object)

Attempts to resolve a dependencies for a given contract type and optionally a given key. If the resolver cannot resolve the dependency then it must return an empty enumeration and not throw. This method differs from GetService in that it returns all registered services for the given type and key combination.

NameDescription
System_CAPS_pubmethodGetService(Type)

Overloaded. Calls GetService passing the given type argument and using null for the name argument.(Defined by DbDependencyResolverExtensions.)

System_CAPS_pubmethodGetService<T>()

Overloaded. Calls GetService passing the generic type of the method as the type argument and null for the name argument.(Defined by DbDependencyResolverExtensions.)

System_CAPS_pubmethodGetService<T>(Object)

Overloaded. Calls GetService passing the generic type of the method and the given name as arguments.(Defined by DbDependencyResolverExtensions.)

System_CAPS_pubmethodGetServices(Type)

Overloaded. Calls GetServices passing the given type argument and using null for the name argument.(Defined by DbDependencyResolverExtensions.)

System_CAPS_pubmethodGetServices<T>()

Overloaded. Calls GetServices passing the generic type of the method as the type argument and null for the name argument.(Defined by DbDependencyResolverExtensions.)

System_CAPS_pubmethodGetServices<T>(Object)

Overloaded. Calls GetServices passing the generic type of the method and the given name as arguments.(Defined by DbDependencyResolverExtensions.)

The public services currently resolved using IDbDependencyResolver are documented here: http://msdn.microsoft.com/data/jj680697