How to populate my List<T> when SP return unknown fields or columns

  • Thread starter Thread starter Sudip_inn
  • Start date Start date
S

Sudip_inn

Guest
i am in a scenario where sql server SP return data where number of fields are unknown and now i am storing those data into data table. i like to know how could i store unknown number of fields into List<T> class.

in my result set few columns / fields are fixed but most of fields are dynamic which is created in SP dynamically. so please guide me how could i store data into List<T> when result set has unknown number of columns / fields.

i search google but found no relevant good guidance to handle this situation.

if possible please share a sample code to handle this scenario. thanks

Continue reading...
 
Back
Top