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); }
public RelationDescription(LinkTarget left, LinkTarget right, TableDescription table, EntityDescription underlyingEntity, bool disabled) { _table = table; _underlyingEntity = underlyingEntity; _left = left; _right = right; _disabled = disabled; }
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); }
public RelationDescription(LinkTarget left, LinkTarget right, TableDescription table, EntityDescription underlyingEntity) : this(left, right, table, underlyingEntity, false) { }