Beispiel #1
0
        public static FieldConditionRule CreateFromDataReader(IRecordsReader reader)
        {
            FieldConditionRule fcr = Create();

            fcr.Id             = reader.GetGuid("id");
            fcr.FieldCondition = reader.GetGuid("FieldCondition");
            fcr.Field          = reader.GetGuid("Field");
            fcr.Operator       = (FieldConditionRuleOperator)System.Enum.Parse(typeof(FieldConditionRuleOperator), reader.GetInt("Operator").ToString());
            fcr.Value          = reader.GetString("Value");

            return(fcr);
        }
Beispiel #2
0
        public static FieldConditionRule Create()
        {
            FieldConditionRule fcr = new FieldConditionRule();

            return(fcr);
        }