Skip to content

Instantly share code, notes, and snippets.

@phillip-haydon
Created December 21, 2013 17:54
Show Gist options
  • Save phillip-haydon/8072573 to your computer and use it in GitHub Desktop.
Save phillip-haydon/8072573 to your computer and use it in GitHub Desktop.
store.DatabaseCommands.Patch("videos/", new[]
{
new PatchRequest
{
Type = PatchCommandType.Modify,
Name = "@metadata",
Nested = new[]
{
new PatchRequest
{
Type = PatchCommandType.Set,
Name = "Raven-Entity-Name",
Value = new RavenJValue("Videos")
},
new PatchRequest
{
Type = PatchCommandType.Set,
Name = "Raven-Clr-Type",
Value =
new RavenJValue("ITCompiler.Web.Models.Video, ITCompiler.Web")
},
}
}
});
@phillip-haydon
Copy link
Author

Got this far, sends the patch request, nothing changes on the server.

Tried specifying "All/Videos" index too, sends patch, no updates. No errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment