Пример #1
0
        public static bool IsSimilar(RelationDescription first, RelationDescription second)
        {
            bool yep = false;

            yep |= LinkTarget.IsSimilar(first.Left, second.Left) && LinkTarget.IsSimilar(first.Right, second.Right);
            yep |= LinkTarget.IsSimilar(first.Left, second.Right) && LinkTarget.IsSimilar(first.Right, second.Left);
            return(yep);
        }
Пример #2
0
 public RelationDescription(LinkTarget left, LinkTarget right, TableDescription table, EntityDescription underlyingEntity, bool disabled)
 {
     _table            = table;
     _underlyingEntity = underlyingEntity;
     _left             = left;
     _right            = right;
     _disabled         = disabled;
 }
Пример #3
0
        public static bool IsSimilar(LinkTarget first, LinkTarget second)
        {
            bool yep = true;

            yep &= first.Entity.Name == second.Entity.Name;
            yep &= first.FieldName == second.FieldName;
            return(yep);
        }
Пример #4
0
 public RelationDescription(LinkTarget left, LinkTarget right, TableDescription table, EntityDescription underlyingEntity)
     : this(left, right, table, underlyingEntity, false)
 {
 }