Represents a SQL query for entities that are created from a DbContext and is executed using the connection from that context. Instances of this class are obtained from the DbSet<TEntity> instance for the entity type. The query is not executed when this object is created; it is executed each time it is enumerated, for example by using foreach. SQL queries for non-entities are created using the Database. See DbSqlQuery for a non-generic version of this class.
Assembly: EntityFramework (in EntityFramework.dll)
Thetype exposes the following members.
|AsNoTracking||Returns a new query where the results of the query will not be tracked by the associated DbContext.|
|Equals||Returns whether the specified query is equal to the current query. (Overrides Object.Equals(Object).)|
|Finalize||(Inherited from Object.)|
|GetEnumerator||Executes the query and returns an enumerator for the elements.|
|GetHashCode||Returns the hash function for the specified query. (Overrides Object.GetHashCode().)|
|GetType||Gets the type for the current query.|
|MemberwiseClone||(Inherited from Object.)|
|ToString||Returns a String that contains the SQL string that was set when the query was created. The parameters are not included. (Overrides Object.ToString().)|