You can omit the Select()
and you'll get a collection of CustomerTable
objects. Assuming your CustomerTable
model contains all values from the table and they are properly mapped, you should have access to all values...
var deleteCust = dbContext.CustomerTables.Where(m => m.UserId == id);