I am using Entity framework for building an app.
Table to be updated.
[Id] [CheckItemId] [Checked] [Comment]
1 100 1 abc
2 150 0 xyz
Class:
public class CheckListRequest
{
public int ID { get; set; }
public bool IsChecked { get; set; }
public string Comment { get; set; }
}
public static void UpdateCheckList(List<CheckListRequest> checkList){
}
How do I update the table multiple column like (Checked,comment) with the values coming in list from frontend using LINQ?