コード例 #1
0
        public ComplexCondition(object model)
        {
            var complexModel = JsonSerializer.Deserialize <ComplexConditionModel>(model.ToString());

            LeftCondition  = RuleHelper.GetCondition(complexModel.LeftCondition);
            RightCondition = RuleHelper.GetCondition(complexModel.RightCondition);
            Operator       = complexModel.Operator.ToLower();
        }