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

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -