I have a DataContext
(db) that can access the tables in my SQL Express database, from which I would like to extract only three of the multiple fields in the tblItem table:
// this does not work - what is the correct way to do it?
var items = db.tblItems.Select(i => i.id && i.name && i.totalAmount);
The intention is to spit these out into a csv file (comma separated). Is a var
the best way to do this?