Is there a way I can get index name from corresponding class in c#? For example: I have class named Users_ByEmail
and I know that Raven created index named Users/ByEmail
for me, but I want to get it from Raven methods.
I need something like this:
public class Users_ByEmail : AbstractIndexCreationTask<User>
....
string indexName = documentStore.GetIndexName(typeof(Users_ByEmail));
Is Raven client has any method doing that exposed? This would be useful, because I don't want use strings when calling UpdateByIndex
method from DataBaseCommands.