private static void UpdateContact(SQLiteCrud sql) { BasicContactModel contact = new BasicContactModel { Id = 1, FirstName = "fName1z", LastName = "lName1" }; sql.UpdateContactName(contact); }
public void UpdateContactName(BasicContactModel contact) { string sql = "UPDATE Contacts SET FirstName = @FirstName, LastName = @LastName WHERE Id = @Id;"; db.SaveData(sql, contact, connString); }