public static DBRecord Update(this DBRecord record, TodoItem t) { record.SetObject(new NSString(t.Name), "Title"); record.SetObject(new NSString(t.Notes), "Description"); record.SetObject(new NSString(t.Done.ToString()), "IsDone"); return(record); }
public static DBRecord Update(this DBRecord record, Task t) { record.SetObject(new NSString(t.Title), "Title"); record.SetObject(new NSString(t.Description), "Description"); record.SetObject(new NSString(t.IsDone.ToString()), "IsDone"); return(record); }