Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DbExtensions Class
Collapse the table of content
Expand the table of content

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.
Show:
© 2015 Microsoft