Share via


DbSet<TEntity>.AsQueryable Method

Definition

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