I saw a type like DBSet, it may implement both IQuerable and IEnumerable like below:
public class DbSet : DbQuery, IDbSet