Updating just one column value using LINQ
Suppose I have a column ID in a table and I want to increase one of its column values ββby 1. How do I do this.
This is what I already have. The table has 3 properties, (id, category, value)
var col1= db.columns.Where(w => w.category.Equals("Cars"));
I want to increase the value in a table that has the category "Cars" by 1. What is a LINQ query for this.
A similar question may have been asked before, but the answer I haven't seen seems to be satisfactory enough.
+3
source to share
4 answers