Click here to Skip to main content
15,884,472 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can Any One Please tell me How to convert SqlDataReader to List<t>(T is Class)? How to filter particular employee details in front end using LinQ?
Posted
Comments
Kenneth Haugland 28-Jul-12 16:29pm    
If you use the Wizard in Visual studio it would be created for you

1 solution

You have to read the data from your data reader in to a list. You can't convert it in to a strongly typed list, unless it's a list of objects that represent a row in a weakly typed form.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900