Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public override void ConfigureMappings(IConfiguration config, ApplicationContext applicationContext)
{
var profiles = GetType()
.Assembly
.GetTypes()
.Where(t => t.BaseType == typeof(Profile))
.Select(t => Activator.CreateInstance(t) as Profile);
foreach (var profile in profiles)
{
config.AddProfile(profile);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.