Example #1
0
        public static DomainType getDomainOfLinkVariable(SQLRepository repository, SQLConnector tggLv)
        {
            TGGObjectVariable supplier = new TGGObjectVariable(repository.GetElementByID(tggLv.SupplierID), repository);
            TGGObjectVariable client   = new TGGObjectVariable(repository.GetElementByID(tggLv.ClientID), repository);

            DomainType supplierDom = getDomainOfObjectVariable(repository, supplier);
            DomainType clientDom   = getDomainOfObjectVariable(repository, client);

            if (!supplierDom.Equals(clientDom))
            {
                return(DomainType.CORRESPONDENCE);
            }
            else
            {
                return(supplierDom);
            }
        }