Example #1
0
        public override dbqf.Criterion.IParameter Restore(DTO.Criterion.ParameterDTO dto)
        {
            var sp = dto as SimpleParameterDTO;

            if (sp == null)
            {
                return(base.Restore(dto));
            }

            return(new SimpleParameter(PathAssembler.Restore(sp.Path), sp.Operator, sp.Value));
        }
Example #2
0
        public override dbqf.Criterion.IParameter Restore(DTO.Criterion.ParameterDTO dto)
        {
            var np = dto as NullParameterDTO;

            if (np == null)
            {
                return(base.Restore(dto));
            }

            return(new NullParameter(PathAssembler.Restore(np.Path)));
        }
Example #3
0
        public override DTO.Criterion.ParameterDTO Create(dbqf.Criterion.IParameter p)
        {
            var np = p as NullParameter;

            if (np == null)
            {
                return(base.Create(p));
            }

            return(new NullParameterDTO()
            {
                Path = PathAssembler.Create(np.Path)
            });
        }
Example #4
0
        public override DTO.Criterion.ParameterDTO Create(dbqf.Criterion.IParameter p)
        {
            var sp = p as SimpleParameter;

            if (sp == null)
            {
                return(base.Create(p));
            }

            return(new SimpleParameterDTO()
            {
                Path = PathAssembler.Create(sp.Path),
                Operator = sp.Operator,
                Value = sp.Value
            });
        }