Ejemplo n.º 1
0
 /// <summary>
 /// ChangeRule: typeof(ORMSolutions.ORMArchitect.ORMAbstraction.ConceptType)
 /// </summary>
 private static void ConceptTypeChangedRule(ElementPropertyChangedEventArgs e)
 {
     if (e.DomainProperty.Id == ConceptType.NameDomainPropertyId)
     {
         ValidateTableNameChanged(TableIsPrimarilyForConceptType.GetTable((ConceptType)e.ModelElement));
     }
 }
Ejemplo n.º 2
0
 private static void DelayValidateConceptTypeNameChanged(ModelElement element)
 {
     if (!element.IsDeleted)
     {
         ConceptType conceptType = (ConceptType)element;
         Table       table1      = TableIsPrimarilyForConceptType.GetTable(conceptType);
         if (null != table1)
         {
             ValidateSchemaNamesChanged(table1.Schema);
         }
         foreach (Table table2 in TableIsAlsoForConceptType.GetTable(conceptType))
         {
             ValidateSchemaNamesChanged(table2.Schema);
         }
     }
 }