Compartir a través de


DbDependencyResolverExtensions.GetServices (Método) (IDbDependencyResolver, Type)

[Esta página es específica de la versión 6 de Entity Framework. La versión más reciente está disponible como el paquete NuGet de Entity Framework. Para más información sobre Entity Framework, consulte msdn.com/es-ES/data/ef].

Llama a GetServices(Type, Object) pasando el argumento de tipo especificado y usando NULL para el argumento de nombre.

Espacio de nombres:  System.Data.Entity.Infrastructure.DependencyResolution
Ensamblado:  EntityFramework (en EntityFramework.dll)

Sintaxis

'Declaración
<ExtensionAttribute> _
Public Shared Function GetServices ( _
    resolver As IDbDependencyResolver, _
    type As Type _
) As IEnumerable(Of Object)
'Uso
Dim resolver As IDbDependencyResolver 
Dim type As Type 
Dim returnValue As IEnumerable(Of Object)

returnValue = resolver.GetServices(type)
public static IEnumerable<Object> GetServices(
    this IDbDependencyResolver resolver,
    Type type
)
[ExtensionAttribute]
public:
static IEnumerable<Object^>^ GetServices(
    IDbDependencyResolver^ resolver, 
    Type^ type
)
static member GetServices : 
        resolver:IDbDependencyResolver * 
        type:Type -> IEnumerable<Object> 
public static function GetServices(
    resolver : IDbDependencyResolver, 
    type : Type
) : IEnumerable<Object>

Parámetros

  • type
    Tipo: System.Type
    Tipo de contrato que se va a resolver.

Valor devuelto

Tipo: System.Collections.Generic.IEnumerable<Object>
Todas las dependencias resueltas o IEnumerable<T> si no se resuelve ningún servicio.

Nota sobre el uso

En Visual Basic y C#, se puede llamar a este método como a un método de instancia en cualquier objeto de tipo IDbDependencyResolver. Cuando emplee la sintaxis del método de instancia para llamar a este método, omita el primer parámetro. Para obtener más información, vea https://msdn.microsoft.com/es-es/library/bb384936(v=vs.113) o https://msdn.microsoft.com/es-es/library/bb383977(v=vs.113).

Vea también

Referencia

DbDependencyResolverExtensions Clase

GetServices (Sobrecarga)

System.Data.Entity.Infrastructure.DependencyResolution (Espacio de nombres)