public bool Equals(RelationsChainElement left, RelationsChainElement right) { bool rez = left.myEntityName == right.myEntityName && left.nextEntityName == right.nextEntityName && left.myKeyFieldName == right.myKeyFieldName && left.nextKeyFieldName == right.nextKeyFieldName; /* * fn.dp(""); * fn.dp("Comparing entities:"); * fn.dp(left.ToString()); * fn.dp(right.ToString()); * fn.dp("Rezult is: " + ( rez ? "EQUAL" : "NOT EQUAL")); */ return(rez); }
public void addElement(Relation r, RelationsChainElement prevElement) { //инициализация последующего элемента из предыдущего //addElement(new RelationsChainElement(r, myEntityName)); }
public RelationsChainElement(Relation _r, RelationsChainElement prevElement) { myEntityName = prevElement.nextEntityName; r = _r; }
public void addElement(RelationsChainElement el) { items.Add(el); }