Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

DbExtensions Class

Entity Framework 5.0

Contains a set of extension methods to help with common tasks.

System.Object
  System.Data.Entity.DbExtensions

Namespace:  System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)
public static class DbExtensions

The DbExtensions type exposes the following members.

  NameDescription
Public methodStatic memberAsNoTracking(IQueryable)Returns a new query where the entities returned will not be cached in the DbContext or ObjectContext.
Public methodStatic memberAsNoTracking<T>(IQueryable<T>)Returns a new query where the entities returned will not be cached in the DbContext or ObjectContext.
Public methodStatic memberInclude(IQueryable, String)Specifies the related objects to include in the query results.
Public methodStatic memberInclude<T>(IQueryable<T>, String)Specifies the related objects to include in the query results.
Public methodStatic memberInclude<T, TProperty>(IQueryable<T>, Expression<Func<T, TProperty>>)Specifies the related objects to include in the query results.
Public methodStatic memberLoadAn extension method on IQueryable that enumerates the results of the query. This is equivalent to calling ToList without actually creating the list.
Public methodStatic memberToBindingList<T> Returns an BindingList<T> implementation that stays in sync with the given ObservableCollection<T>.
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.