コード例 #1
0
ファイル: UpdateHandler.cs プロジェクト: dronab/DensoDB
    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);
    }
コード例 #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);
        }
コード例 #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);
        }
コード例 #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);
        }