How to updated sqlite db in xamarin iOS
Used the component SQLite.NET add to component.
I have inserted 10 records into db note.db
which do have Table Student
public class Student{
[Primary autoIncrement]
public int id {get;set;}
public int marks {get;set;}
public string grade {get;set;}
public string subject {get;set;}
}
Records have been inserted into table.
I want to updated Marks of Student for xyz id;
var updateMarks = db.Query<Student>("UPDATE Student Set marks = ? WHERE Stockid = ?",100,stdId);
for(var check in updateMarks)
Console.WriteLine ("AFter Updated {0}", check. marks);