Ejemplo n.º 1
0
        public List <int> GetParametersIdsForConditions()
        {
            ParameterToRuleDb PTRDb         = new ParameterToRuleDb();
            List <int>        parametersIds = PTRDb.GetConditionParametersIdsByRuleId(id);

            PTRDb.Close();
            return(parametersIds);
        }
Ejemplo n.º 2
0
        public List <int> GetRulesIds(string value)
        {
            var        PTRDb    = new ParameterToRuleDb();
            List <int> rulesIds = PTRDb.GetRulesIdsByParam(id, value);

            PTRDb.Close();
            return(rulesIds);
        }
Ejemplo n.º 3
0
        public static List <OnDecisionsRuleEntity> GetForParameterWithValue(int parameter, string value)
        {
            ParameterToRuleDb            PTRDb        = new ParameterToRuleDb();
            List <OnDecisionsRuleEntity> rulesObjects = PTRDb.GetEntitiesByParameterIdAndValue(parameter, value);

            PTRDb.Close();
            return(rulesObjects);
        }