public PreProcessEntityInfo(string id, Type entityType, CouchDBViewRowKey key, JToken row) { this.id = id; this.entityType = entityType; this.key = key; this.row = row; }
public EntityInfo(object entity, IdRev idrev, JToken doc, CouchDBViewRowKey key) { this.entity = entity; this.idrev = idrev; this.doc = doc; this.key = key; }
private PreProcessInfo PreProcess(JToken[] rows) { var preProcessRows = new List <PreProcessEntityInfo>(); foreach (JToken row in rows) { JToken doc = row[CouchDBFieldsConst.ResultRowDoc]; if (doc == null) { throw new Exception("doc field was not found"); } string id = doc.Value <string>(CouchDBFieldsConst.DocId); Type entityType = GetDocEntityType(doc); CouchDBViewRowKey key = ExtractRowKey(row); preProcessRows.Add(new PreProcessEntityInfo(id, entityType, key, row)); } return(new PreProcessInfo(preProcessRows.ToArray())); }
internal void AddExist(object entity, IdRev idrev, JToken doc, CouchDBViewRowKey key) { existEntities.Add(new EntityInfo(entity, idrev, doc, key)); }