コード例 #1
0
 public PredicateModel()
 {
     Id          = 0;
     Name        = "";
     Description = "";
     Parent      = null;
 }
コード例 #2
0
        public static Predicate Convert(PredicateModel predicate)
        {
            Predicate model = new Predicate();

            model.Id          = predicate.Id;
            model.Name        = predicate.Name;
            model.Description = predicate.Description;

            if (predicate.Parent != null)
            {
                model.Parent = PredicateModel.Convert(predicate.Parent);
            }

            return(model);
        }