Is it possible to have a select clause on a dbcontext.set. I have the following code that returns all coinsurance of People in a db table and selects all columns.
public IQueryable<Person> GetPeople()
{
return DbContext.Set<Person>();
}
I only want to select username and email
1 Answer