How to use a reference type as a key in a document in RavenDB
问题 I have a class that I want to use for a document key in RavenDB: public class DocumentKey { public string Namespace { get; set; } public string Id { get; set; } } I've also implemented the ITypeConverter (not the .NET one, the RavenDB-specific one) interface to convert from the reference type to a string (because in the database, the keys are all really just strings). Finally, I've added the implementation of ITypeConverter to the IDocumentStore implementation through the List<ITypeConverter>