public QueryResult Update(string id, ArticlePatch obj) { var result = r.db(_dbName).table(_tableName).filter(new { id = id }).update(obj).run<QueryResult>(_connection); return result; }
public QueryResult Insert(ArticlePatch obj) { QueryResult result = r.db(_dbName).table(_tableName).insert(obj).run<QueryResult>(_connection); return result; }