private bool GetTableKey(Table table, out Guid key)
        {
            ConceptType conceptType;
            ObjectType  objectType;

            if (null != (conceptType = TableIsPrimarilyForConceptType.GetConceptType(table)) &&
                null != (objectType = ConceptTypeIsForObjectType.GetObjectType(conceptType)))
            {
                key = objectType.Id;
                return(true);
            }
            key = Guid.Empty;
            return(false);
        }
示例#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);
         }
     }
 }