Task<ActionResult<IQueryable<TPOCO>>> Get(ODataQueryOptions<TPOCO> options) #2517
Unanswered
vigouredelaruse
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
there is a dearth of information on using the subjectline pattern in asp.net core odata controllers.
as per the documentation, ODataQueryOptions.cs can be used to perform query composition
https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.odata.query.odataqueryoptions?view=odata-aspnetcore-8.0
this means query composition can be delegated to
obviously this reduces the think time for api developers vis a vis composing entity storage queries
but all this power is hidden behind many barely repeatable google queries
this is to crystallize thoughts around a doc enhancement vis a vis code that looks like this
sometimes you want to dynamically instantiate ODataQueryOptions
it took too long to piece together the following
cobbled by looking at
there may be a working sample like this on learn.microsoft.com by now but if not there should be. there really should be
regards
Beta Was this translation helpful? Give feedback.
All reactions