Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 protected bool Equals(EntityAssociation other)
 {
     return(string.Equals(_qualifier, other._qualifier) && string.Equals(_to, other._to) && string.Equals(EntityName, other.EntityName));
 }