public ActionResult CreateTargetCondition(policyData vData, int id, int linkId)
        {
            vData.PolicyLink = new PolicyLinkEntity(linkId);

            vData.Target = new TargetEntity(id);
            vData.Condition = new DecisionNodeEntity();
            vData.Condition.Type = constants.conditionType;
            vData.Condition.CombineAnd = true;

            TargetConditionEntity tce = new TargetConditionEntity();
            tce.Target = vData.Target;
            tce.DecisionNode = vData.Condition;
            tce.Save(true);

            ViewData["title"] = "new target condition";

            return View("EditTarget",vData);
        }
        private void loadSubject(TargetEntity te, XmlNode node)
        {
            DecisionNodeEntity ce = new DecisionNodeEntity();

            TargetConditionEntity tce = new TargetConditionEntity();
            tce.Target = te;
            tce.DecisionNode = ce;

            loadCondition(ce, node);
        }
        /// <summary>Creates a new, empty TargetConditionEntity object.</summary>
        /// <returns>A new, empty TargetConditionEntity object.</returns>
        public override IEntity Create()
        {
            IEntity toReturn = new TargetConditionEntity();

            // __LLBLGENPRO_USER_CODE_REGION_START CreateNewTargetCondition
            // __LLBLGENPRO_USER_CODE_REGION_END
            return toReturn;
        }