Metodo DbDependencyResolverExtensions.GetServices (IDbDependencyResolver, Type)
[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]
Chiama GetServices(Type, Object) che passa l'argomento di tipo specificato e utilizza Null come argomento nome.
Spazio dei nomi: System.Data.Entity.Infrastructure.DependencyResolution
Assembly: EntityFramework (in EntityFramework.dll)
Sintassi
'Dichiarazione
<ExtensionAttribute> _
Public Shared Function GetServices ( _
resolver As IDbDependencyResolver, _
type As Type _
) As IEnumerable(Of Object)
'Utilizzo
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>
Parametri
- resolver
Tipo: System.Data.Entity.Infrastructure.DependencyResolution.IDbDependencyResolver
Sistema di risoluzione da utilizzare.
- type
Tipo: System.Type
Tipo di contratto da risolvere.
Valore restituito
Tipo: System.Collections.Generic.IEnumerable<Object>
Tutte le dipendenze risolte o IEnumerable<T> se nessun servizio viene risolto.
Nota sull'utilizzo
In Visual Basic e C# è possibile chiamare questo metodo come metodo di istanza su qualsiasi oggetto di tipo IDbDependencyResolver. Per chiamare il metodo usando la sintassi del metodo di istanza, omettere il primo parametro. Per altre informazioni, vedere https://msdn.microsoft.com/it-it/library/bb384936(v=vs.113) o https://msdn.microsoft.com/it-it/library/bb383977(v=vs.113).
Vedere anche
Riferimento
DbDependencyResolverExtensions Classe
Spazio dei nomi System.Data.Entity.Infrastructure.DependencyResolution