I have a db with one table, in table I have fields(id,name,place,course,homework,score)
public class LoginTable
{
[PrimaryKey, AutoIncrement, Column("_Id")]
public int id { get; set; }
public string name{ get; set; }
public string place{ get; set; }
public string course{ get; set; }
public string homework{ get; set; }
public string score{ get; set; }
Now I want to change values field (score) for all row in table with this term:
var data1 = data.Where(x => x.name == "a" && x.place == "b");
if (data1 != null)
{ HELP ME HERE !!!!" HOW CALL ALL ROW of Table(DB) HERE AND CALCULATE SCORE (UPDATE FIELDS SCORE)" }
I don't know whats written in if {}!
Note: I want to calculate new score with this function: score+homework=(new)score
