Casting PgSqlDataReader to List<T>
Casting PgSqlDataReader to List<T>
I am planning to migrate a web forms project to MVC. In web forms I usually save the result of a SELECT statement in a PgSqlDataReader. What I want is to "cast" PgSqlDataReader to List<T>. One way to do it is to iterate the reader and add items to the list. Is there a "direct" way to perform such a casting?
-
- Devart Team
- Posts: 2420
- Joined: Wed 02 Nov 2011 09:44
Re: Casting PgSqlDataReader to List<T>
dotConect for PostgreSQL does not support such a feature. You need to implement it yourself. The following link can be useful for you: https://stackoverflow.com/questions/1464883/