Example #1
0
    private static void UpdateSingleDocument(JObject document, IObjectStore store)
    {
      var objid = (string)document[DocumentMetadata.IdPropertyName];
      var obj = JObject.Parse(store.GetById(objid));
      foreach (var p in GetRealProperties(document)) // remove properties starting with  
        obj[p] = document[p];

      store.Set(objid, obj);
    }
Example #2
0
        private static void UpdateSingleDocument(BSonDoc document, IObjectStore store)
        {
            var obj = store.GetById((byte[])document[DocumentMetadata.IdPropertyName]);
              BSonDoc val = GetValue(document);
              foreach (var p in GetRealProperties(val)) // remove properties starting with
            if (document.HasProperty(p))
              obj[p] = val[p];

              store.Set(obj);
        }
Example #3
0
        private static void UpdateSingleDocument(JObject document, IObjectStore store)
        {
            var objid = (string)document[DocumentMetadata.IdPropertyName];
            var obj   = JObject.Parse(store.GetById(objid));

            foreach (var p in GetRealProperties(document)) // remove properties starting with
            {
                obj[p] = document[p];
            }

            store.Set(objid, obj);
        }
Example #4
0
        private static void UpdateSingleDocument(BSonDoc document, IObjectStore store)
        {
            var obj = store.GetById((byte[])document[Configuration.DensoIDKeyName]);
              BSonDoc val = GetValue(document);
              foreach (var p in val.GetRealProperties()) // remove properties starting with
            if (document.HasProperty(p))
              obj[p] = val[p];

              store.Set(obj);
        }