Exemple #1
0
 void IORMModelErrorActivationService.RegisterErrorActivator(Type elementType, bool registerDerivedTypes, ORMModelErrorActivator activator)
 {
     if (registerDerivedTypes)
     {
         DomainDataDirectory dataDirectory = myStore.DomainDataDirectory;
         RegisterErrorActivator(elementType.IsSubclassOf(typeof(ElementLink)) ? dataDirectory.GetDomainRelationship(elementType) : dataDirectory.GetDomainClass(elementType), activator);
     }
     else
     {
         myActivators[elementType] = activator;
     }
 }