When visiting the database in the middle layer, I want to read the data from the database to put data from the database and put the data in the DataReader, but it cannot be successful. What are the ways? (I don't want to use the adapter method) My code is as follows
[Webmethod]
public system.data.sqlclient.sqldataReader getdata ()
{{
System.data.sqlclient.sqldataReader; // = new system.data.sqlclient.sqldataReader ();
sqlconnection.open ();
sqlcommand.commandText = Select top 1 * From Authors;
Reader = sqlcommand.executereader ();
Reader1 = Reader [ID] .tring ();
Return Reader;
}