0

I am wondering what you consider as the best way to map SqlDataReader rows to corresponding C# classes. SQL-queries are generated dynamically.

Qué Padre
  • 2,005
  • 3
  • 24
  • 39

1 Answers1

1

SqlDataReader is not persistant, it's a firehose, designed for forward-only, read-only access to data. If you want to map SQL queries to classes you may need another approach like strongly typed datasets, LINQ2SQL etc.

Yuriy Galanter
  • 38,833
  • 15
  • 69
  • 136