c# - Return an IEnumerable with variable number of columns WebApi -


i have request coming with filtering parameters , list of possible calculations perform. code filtering database , grouping date field.

at point supposed run through dataset , perform requested calculations, join them based on date field , return front end graph different calculations against each other.

my question if there way have web api return ienumerable number , name of columns unknown until function called, or if way create class represent each data point calculation properties null unless called for?

yes, return ienumerable. or can serialize them in controller string , return string.


Comments

Popular posts from this blog

Process 'command 'F:\android-sdk\build-tools\21.1.2\aapt.exe'' finished with non-zero exit value 1 -

apache - setting document root in antoher partition on ubuntu -

java - Updating to mongo 3.0 -