c# - Return anonymous types from stored procedure -


this question duplicate of question here: returning anonymous types stored procedure linq2sql

but been 4 years , no 1 has answered it, hoping like..bump up. need answered, been struggling same issue.

thanks

you can generate xml-like string in store procedure , use xmlserializer deserialize more complex object in runtime. use attribute in xml can distinguish between different types of objects returning value referring to.

edit: 1 other workaround returning varbinary object stored procedure include binary data needed instantiate desired object. of course using method, difficult maintain code.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -