Suppose I have a Table name AutoPurge with 2 columns ID (identity) and Parameter. There are 4 records in this table - a, b, c and d.
Assume, I wish to display this 4 value in a table format in an MVC application. So I pass this following code to the view from my controller.
//AutoPurge is table
return View(await _context.AutoPurge.ToListAsync());
So by right, this will display all 4 values (a, b, c and d described above) in a table format in my View. If i only want to display all the rows (a, b, c) except the row "d", may I ask how can i code for this?