Exemplo n.º 1
0
        public static void SetupConventions(DocumentConvention conventions)
        {
            conventions.TransformTypeTagNameToDocumentKeyPrefix = typeTagName => typeTagName;

            conventions.RegisterIdConvention<SiddurSnippet>((commands, snippet) => string.Format("{0}/{1}", conventions.GetTypeTagName(snippet.GetType()), snippet.Slug));
            conventions.RegisterIdConvention<SiddurPrayer>((commands, prayer) => string.Format("{0}/{1}", conventions.GetTypeTagName(prayer.GetType()), prayer.Slug));
        }