Share via


Metodo DbQuery.IListSource.GetList

[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.]

Genera un'eccezione che indica che l'associazione diretta a una query dell'archivio non è supportata. In alternativa, popolare un DbSet con dati, ad esempio tramite il metodo di estensione Load, quindi eseguire l'associazione ai dati locali. Per l'associazione WPF a DbSet.Local. Per Windows Form eseguire l'associazione a DbSet.Local.ToBindingList().

Spazio dei nomi:  System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")> _
Private Function GetList As IList 
    Implements IListSource.GetList
'Utilizzo
Dim instance As DbQuery 
Dim returnValue As IList 

returnValue = CType(instance, IListSource).GetList()
[SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
IList IListSource.GetList()
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
private:
virtual IList^ GetList() sealed = IListSource::GetList
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private abstract GetList : unit -> IList 
[<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")>]
private override GetList : unit -> IList
JScript supports the use of explicit interface implementations, but not the declarations of new ones.

Valore restituito

Tipo: System.Collections.IList
Non restituisce mai; genera sempre.

Implements

IListSource.GetList()

Vedere anche

Riferimento

DbQuery Classe

Spazio dei nomi System.Data.Entity.Infrastructure