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)); }
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))); }
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) }); }
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 }); }