RavenDb GenerateDocumentKey -


I need to create an ID for the hair object of my document. What is the current syntax for creating document key?

session.Advanced.Conventions.GenerateDocumentKey (document) is no longer anymore I have found that the _document session. Advanced. Documentstress Insert GenerateDocumentKey method but its signature is weird: I'm fine with the default key generation algorithm I just want to pass an object and want to get an ID. Foo is changed to Foos / , which goes back again so that every time the server is not consulted, specify the ID on the client side Can be done.

If you want actually this behavior, then you can try using your own HiLoKeyGenerator, but have you considered something simple? I do not know what your model is, but if the child is fully owned by the document (which should be in the same document) then you have a very easy choice:

  1. Simply use the index within the archive
  2. Keep an int nextchild thingId property on the document and every time you add a child child
  3. use only Do Guid , although anyone on the phone can read, type, view, Ulna is no fun or speak.

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -