atroul
atroul

Reputation: 51

Map stored procedure's result to C# object (variable number of columns)

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

Answers (1)

Juan
Juan

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

Related Questions