RavenDB: Add auto increment to other property than ID
问题 Is there a way to put an attribute on a property to tell RavenDB to use this property just like the ID-property and put an auto increment on it? Pseudo-code: public class MyObj { public string Id { get; set; } [Increment] public int OtherProp { get; set; } } 回答1: Dynamicus points to the correct solution, but I'd like to give the exact sample-code for helping other Stackoverflow-users and maybe also making the solution more searchable. In relation to the question's example-code, here is the