Created
December 21, 2013 17:54
-
-
Save phillip-haydon/8072573 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") | |
}, | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Got this far, sends the patch request, nothing changes on the server.
Tried specifying "All/Videos" index too, sends patch, no updates. No errors.