I have a database table with 20 columns but I only need to work with 8 of the columns.
Is it more efficient to return the whole table
_context.products.where(x => x.active);
Or is it better to do this
_context.products.where(x => x.active).select(x => new SubModels.ProductItem { id = x.id, name = x.name, category = x.category etc etc});
Thanks