DbReferenceEntry<TEntity, TProperty>.Query Method ()

 

Returns the query that would be used to load this entity from the database. The returned query can be modified using LINQ to perform filtering or operations in the database.

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

public IQueryable<TProperty> Query()

Return Value

Type: System.Linq.IQueryable<TProperty>

A query for the entity.