Exemplo n.º 1
0
        public static bool HasSameAssociation(BehaviorCriteria?beh1, BehaviorCriteria?beh2)
        {
            if (beh1 == null && beh2 == null)
            {
                return(true);
            }
            if (beh1 == null || beh2 == null)
            {
                return(false);
            }
            ObjectBehaviorAssociation assoc1 = Config.ObjectAssociations.FindObjectAssociation(beh1.Value);
            ObjectBehaviorAssociation assoc2 = Config.ObjectAssociations.FindObjectAssociation(beh2.Value);

            return(assoc1 == assoc2);
        }
Exemplo n.º 2
0
 public bool AddAssociation(ObjectBehaviorAssociation objAsooc)
 {
     return(_objAssoc.Add(objAsooc));
 }