DbQuery<TResult>.IListSource.GetList (Método)

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

Produce una excepción que indica que no se admite el enlace directo a una consulta de almacén. En su lugar, rellene un DbSet con datos, por ejemplo usando el método de extensión Load y, a continuación, realice el enlace con datos locales. Para WPF, el enlace se realiza a DbSet.Local. Para Windows Forms, el enlace se realiza a DbSet.Local.ToBindingList().

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

Sintaxis

'Declaración
<SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")> _
Private Function GetList As IList 
    Implements IListSource.GetList
'Uso
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.

Valor devuelto

Tipo: System.Collections.IList
Nunca devuelve resultados; siempre produce una excepción.

Implementaciones

IListSource.GetList()

Vea también

Referencia

DbQuery<TResult> Clase

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