15. A computer-readable storage device storing computer-executable instructions that, when executed by a server computer, cause the server computer to perform a method, comprising: providing, on the server computer, a programming model for providing a web service that supports defining a concrete custom query builder subclass derived from a query builder base class included in the programming model and defining a concrete arguments class that extends an arguments base class included in the programming model, wherein: the query builder base class is configured to use query parameters of the arguments base class to create queries; the concrete arguments class includes one or more custom query parameters specific to the concrete custom query builder subclass; the concrete custom query builder subclass is configured to dynamically create a custom query at runtime using parameter values of the one or more custom query parameters which are to be bound to the concrete custom query builder subclass at runtime; the concrete custom query builder subclass uses the custom query to dynamically create a query run at runtime, wherein the query run is configured to execute the custom query for returning query results based on the one or more custom query parameters; and the query builder base class includes a method for initializing an instance of the custom query builder subclass at runtime and a method for retrieving the query run created by the concrete query builder subclass; providing, on the server computer, a query service that provides an interface to expose data access functionality via the query builder base class included in the programming model; accepting, by the query service from a consumer application at runtime, a query request that includes a reference to the concrete custom query builder subclass; invoking, by the query service, the concrete custom query builder subclass to initialize the instance of the concrete custom query builder subclass and retrieve the query run created by the concrete custom query builder subclass; executing, by the query service, the query run created by the concrete custom query builder subclass for retrieving the query results based on the one or more custom query parameters; and returning, by the query service, the query results to the consumer application at runtime.
15. A computer-readable storage device storing computer-executable instructions that, when executed by a server computer, cause the server computer to perform a method, comprising: providing, on the server computer, a programming model for providing a web service that supports defining a concrete custom query builder subclass derived from a query builder base class included in the programming model and defining a concrete arguments class that extends an arguments base class included in the programming model, wherein: the query builder base class is configured to use query parameters of the arguments base class to create queries; the concrete arguments class includes one or more custom query parameters specific to the concrete custom query builder subclass; the concrete custom query builder subclass is configured to dynamically create a custom query at runtime using parameter values of the one or more custom query parameters which are to be bound to the concrete custom query builder subclass at runtime; the concrete custom query builder subclass uses the custom query to dynamically create a query run at runtime, wherein the query run is configured to execute the custom query for returning query results based on the one or more custom query parameters; and the query builder base class includes a method for initializing an instance of the custom query builder subclass at runtime and a method for retrieving the query run created by the concrete query builder subclass; providing, on the server computer, a query service that provides an interface to expose data access functionality via the query builder base class included in the programming model; accepting, by the query service from a consumer application at runtime, a query request that includes a reference to the concrete custom query builder subclass; invoking, by the query service, the concrete custom query builder subclass to initialize the instance of the concrete custom query builder subclass and retrieve the query run created by the concrete custom query builder subclass; executing, by the query service, the query run created by the concrete custom query builder subclass for retrieving the query results based on the one or more custom query parameters; and returning, by the query service, the query results to the consumer application at runtime. 17. The computer-readable storage device of claim 15 , wherein the query builder base class includes: a method that returns an initialized query object to the query service at runtime.