This project is read-only.


Make the query only convention configurable


At present, any method returning IQueryable<T> is recognised, by convention, as being a 'query only' method (side-effect free). We now also have a [QueryOnly] attribute to indicate that other methods are query only. Perhaps we should now make the first convention configurable - switched on by default, but if you switch it off then all methods are assumed to non-idempotent (requiring POST method) unless explicitly marked with [QueryOnly] or [Idempotent].
Closed May 9, 2013 at 4:55 PM by RichardPawson
I'm dropping this one for now as no-one has raised it as an issue, and there might be other solutions (e.g. mark up a method that you don't want treated as query-only with [idempotent] or another attribute).