Skip to content

Instantly share code, notes, and snippets.

@bradoyler
Created December 11, 2012 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bradoyler/4261380 to your computer and use it in GitHub Desktop.
Save bradoyler/4261380 to your computer and use it in GitHub Desktop.
Multi-map index creation with RavenDB
public class PeopleIndex : AbstractMultiMapIndexCreationTask
{
public PeopleIndex()
{
AddMap<User>(users => from user in users select new { user.Name });
AddMap<Person>(p => from person in p select new { person.Name });
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment