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