예제 #1
0
        //protected void AddBrokenConstraint(BusinessConstraint businessConstraint)
        //{
        //    _brokenConstraints.Add(businessConstraint);
        //}

        protected void AddBrokenConstraint(BusinessConstraint businessConstraint, string constraintPath = null)
        {
            if (!string.IsNullOrEmpty(constraintPath))
            {
                businessConstraint.ConstraintPath = (string.IsNullOrEmpty(businessConstraint.ConstraintPath))
                ? constraintPath : $"{constraintPath}.{businessConstraint.ConstraintPath}";
            }

            _brokenConstraints.Add(businessConstraint);
        }
예제 #2
0
 protected void AddBrokenConstraint(BusinessConstraint businessConstraint, string constraintPath = null)
     => BrokenConstraints.AddBrokenConstraint(businessConstraint, constraintPath);