コード例 #1
0
 public virtual IEnumerable <Type> GetConfigurationTypes() =>
 MigrationsConfigurationTool.GetTypes(_assembly)
 .Distinct();
コード例 #2
0
        protected virtual DbMigrationsConfiguration CreateConfiguration(Type configurationType)
        {
            var configuration = MigrationsConfigurationTool.CreateConfiguration(configurationType, _assembly);

            return(configuration);
        }
コード例 #3
0
        public Type GetConfigurationType(Type contextType)
        {
            var configurationType = MigrationsConfigurationTool.SelectType(GetConfigurationTypes(), contextType);

            return(configurationType);
        }