Example #1
0
 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;
 }
Example #2
0
 public QueryResult Insert(ArticlePatch obj)
 {
     QueryResult result = r.db(_dbName).table(_tableName).insert(obj).run<QueryResult>(_connection);
     return result;
 }