Created
February 9, 2009 23:25
-
-
Save jagregory/61092 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public interface IAutoMappingConfigChunk | |
| { | |
| void Configure(AutoPersistenceModel model); | |
| } | |
| // in AutoPersistenceModel | |
| public AutoPersistenceModel WithConfigurationChunk(IAutoMappingConfigChunk chunk) | |
| { | |
| configChunks.Add(chunk); | |
| return this; | |
| } | |
| // WithConfigurationChunks(assembly) etc... | |
| // before compiling automappings, iterate configChunks and | |
| // execute them against the APM | |
| foreach (var chunk in configChunks) | |
| { | |
| chunk.Configure(this); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment