Export (0) Print
Expand All

DbQuery(Of TResult).IListSource.GetList Method

Entity Framework 5.0

Throws an exception indicating that binding directly to a store query is not supported.

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

'Declaration
Private Function GetList As IList 
	Implements IListSource.GetList
'Usage
Dim instance As DbQuery 
Dim returnValue As IList 

returnValue = CType(instance, IListSource).GetList()

Return Value

Type: System.Collections.IList
Never returns; always throws.

Implements

IListSource.GetList

Instead, populate a DbSet with data, for example by using the Load extension method, and then bind to local data. For WPF, bind to Local. For Windows Forms bind to DbSet.Local.ToBindingList().

Show:
© 2014 Microsoft