public EntityAssociation CloneWithContext(string contextAlias) { var cloned = new EntityAssociation(contextAlias + Qualifier, To, Attributes, Collection); if (EntityName == null) { cloned.EntityName = contextAlias; } else { cloned.EntityName = contextAlias + EntityName; } return(cloned); }
protected bool Equals(EntityAssociation other) { return(string.Equals(_qualifier, other._qualifier) && string.Equals(_to, other._to) && string.Equals(EntityName, other.EntityName)); }