DbSet<TEntity>.AsQueryable 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.
Returns this object typed as IQueryable<T>.
public virtual System.Linq.IQueryable<TEntity> AsQueryable ();
abstract member AsQueryable : unit -> System.Linq.IQueryable<'Entity (requires 'Entity : null)>
override this.AsQueryable : unit -> System.Linq.IQueryable<'Entity (requires 'Entity : null)>
Public Overridable Function AsQueryable () As IQueryable(Of TEntity)
Returns
IQueryable<TEntity>
This object.
Remarks
This is a convenience method to help with disambiguation of extension methods in the same namespace that extend both interfaces.
See Querying data with EF Core for more information and examples.
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework