public void Save(RpcRecord rpcRecord) { Save(new List <RpcRecord>() { rpcRecord }); }
public void Remove(RpcRecord rpcRecord) { Remove(new List <RpcRecord>() { rpcRecord }); }
public List <RpcRecord> SearchAndRead(object[] filter, List <RpcField> fieldsResult, int offset = 0, int?limit = null) { var records = new List <RpcRecord>(); object[] result = _rpcConnection.SearchAndRead(_modelName, filter, _fields.ToArray(), offset, limit); foreach (object entry in result) { var vals = (XmlRpcStruct)entry; var id = (int)vals["id"]; var record = new RpcRecord(_rpcConnection, _modelName, id, fieldsResult, vals); records.Add(record); } return(records); }