Open bradyclifford opened 8 years ago
Maybe the Attributes better serve this purpose?
I went for a public static ConfigureMarten(DocumentMapping)
convention on DocumentMapping classes here. If we want to do more discovery via type scanning, I'd rather build that out into FubuMVC.Marten where we can use the more efficient StructureMap type scanning.
Add ability to register indexes, foreign keys, grants, other document mapping needs, etc. for a document type from within the document type class using a static method called
ConfigurePersistence(MartenRegistry)
.If FubuMVC.Marten sees that in a document type, call it before creating the DocumentStore.