You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ravendb
I'm storing generic types and so far have created a custom
FindTypeTagName convention so that the my ReferenceList<T> are stored
as /referencelists/{id} instead of ReferenceListsOfSomething/{id}.
Now I would like to use the generic type name as the Id. I created the
following convention:
So given a ReferenceList<SalaryRange> we currently get an Id of /
referencelists/salaryrange.
Question: How can I use the pluraliser that Raven uses when generating
the ids, so that I get /salaryrangeS instead of /salaryrange.
Also, can someone confirm that
[documentStore.Conventions.GetTypeTagName(e.GetType()) + "/"] is the
default key generator as I don't want to change the strategy for any
other types.
Thanks,
Ben
Itamar Syn-Hershko
unread,
May 6, 2012, 8:03:03 AM5/6/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rav...@googlegroups.com
The pluralizer is a simple function call you can make to Raven.Client.Util.Inflector.Pluralize(word)
The DocumentKeyGenerator is pointing to the default method being used to return a string ID for a given object. By default Raven.Client.Document.MultiTypeHiLoKeyGenerator is used (specifically, GenerateDocumentKey).