I am updating a web application and have decided to use SubSonic as it seems awesome and I want to learn it :) I'm trying to return a SQLDataReader
from a method I already have and have done it like this
public SqlDataReader GetAllCarTypes_dr()
{
return (SqlDataReader)new Query("tblCarType").ExecuteReader();
}
Just checking this is the correct way to do it? Or is there a better subsonic syntax like ExecuteSQLDataReader()
?