I have this project that I am creating a library to handle all the data from multiple projects, I have organized the queries in stored procedures. I need to pass 4 parameters to the store procedure and get back some data. I cannot believe there is no easy way to accomplish this.
I have tried the datareader, datatable I do not want to have to iterate through the data as it does have the possibility to grow large.
Thank you for your help.
I would suggest using Dapper http://code.google.com/p/dapper-dot-net/
It’s a micro ORM, much faster than EF – written by and used by guys behind SO 😉
Note:
I do not want to have to iterate through the data as it does have the possibility to grow large– someone will have to iterate through the result set – either you or the framework you will be using. Consider paging if you think you might get too much data at once.