"test": [ "First" ]
test":"First"
using (IDocumentStore store = new DocumentStore { Url = "http://live-test.ravendb.net/", DefaultDatabase = "altha" }){ store.Initialize(); using (IDocumentSession session = store.OpenSession()){ store.DatabaseCommands.Patch( "ParentItems/1", new[] { new PatchRequest { Type = PatchCommandType.Add, Name = "test", Value = "First" } }); }} }
// .DatabaseCommands// .Patch(// "ParentItems/1",// new ScriptedPatchRequest// {// Script = "_.extend(this, { 'test': '" + date + "'});"// });
var operation = store .DatabaseCommands .UpdateByIndex( "Raven/DocumentsByEntityName", new IndexQuery { Query = "Tag:ParentItems" }, new[] { new PatchRequest { Type = PatchCommandType.Add, Name = "FirstName", Value = "Patched Name" } }, new BulkOperationOptions { AllowStale = false }); operation.WaitForCompletion();
store.DatabaseCommands.UpdateByIndex("Raven/DocumentsByEntityName",
new IndexQuery { Query = "Tag:ParentItems" },
new ScriptedPatchRequest { Script = "this.test = 'First';" });
Hibernating Rhinos Ltd
Oren Eini l CEO l Mobile: + 972-52-548-6969
Office: +972-4-622-7811 l Fax: +972-153-4-622-7811
--
You received this message because you are subscribed to the Google Groups "RavenDB - 2nd generation document database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ravendb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.