Пример #1
0
 ITypeMigrationRules ITypeMigrationRulesVerb.ForType <T>()
 {
     if (!definition.HasTypeDefinition <T>())
     {
         definition.CreateTypeDefinition <T>(null);
     }
     return(new TypeMigrationRules <T>(definition.GetTypeDefinition <T>()));
 }
Пример #2
0
 public bool HasTypeDefinition(Type soughtType)
 {
     return(typeDefinitions.ContainsKey(soughtType) || parentDefinition.HasTypeDefinition(soughtType)); //>>>
 }
Пример #3
0
 public bool CanHandle(Type type)
 {
     return(migrationDefinition.HasTypeDefinition(type));
 }