private void CompileModelOrUseDefaultValues() { bool needToCompile = this.compiledModel == null; if (needToCompile) { bool shouldUseDefaultValues = this.expression == null; this.compiledModel = shouldUseDefaultValues ? CollectionResourceQueryModel.Default : QueryModelCompiler.Compile(this.expression); } }
public QueryModelParser(CollectionResourceQueryModel queryModel) { this.queryModel = queryModel; this.arguments = new Dictionary <string, string>(); }
public static IList <string> GetArguments(CollectionResourceQueryModel queryModel) { var builder = new QueryModelParser(queryModel); return(builder.GenerateArguments()); }
public QueryModelValidator(CollectionResourceQueryModel queryModel) { this.queryModel = queryModel; }