Reputation: 51
I have a stored procedure in my database, which returns a variable number of columns. Is there a C# object where I can map the result of this procedure?
Upvotes: 0
Views: 941
Reputation: 3705
You can use from loosely typed container types: like object
, Dictionary
, DataRow
... or use dynamic objects or either extend DynamicObject
yourself:
https://msdn.microsoft.com/en-us/library/system.dynamic.dynamicobject(v=vs.110).aspx
Upvotes: 1