DbExtensions.Load(IQueryable) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Enumerates the query such that for server queries such as those of DbSet<TEntity>, ObjectSet<TEntity>, ObjectQuery<T>, and others the results of the query will be loaded into the associated DbContext, ObjectContext or other cache on the client. This is equivalent to calling ToList and then throwing away the list without the overhead of actually creating the list.
public static void Load (this System.Linq.IQueryable source);
static member Load : System.Linq.IQueryable -> unit
<Extension()>
Public Sub Load (source As IQueryable)
Parameters
- source
- IQueryable
The source query.
Applies to
Entity Framework