public virtual IEnumerable <Type> GetConfigurationTypes() => MigrationsConfigurationTool.GetTypes(_assembly) .Distinct();
protected virtual DbMigrationsConfiguration CreateConfiguration(Type configurationType) { var configuration = MigrationsConfigurationTool.CreateConfiguration(configurationType, _assembly); return(configuration); }
public Type GetConfigurationType(Type contextType) { var configurationType = MigrationsConfigurationTool.SelectType(GetConfigurationTypes(), contextType); return(configurationType); }