Advice needed getAll fucntion

Hi i would really appreciate some help with a c# GetAll function I am trying to write a getAll to fetch data from the selected database which is mySQL

I want this fucntion to take the input of the string which is the tablename and return the SqlReader

So far I have this, but would appreciate your guidance, atleast a pointer in the right direction

http://ift.tt/1lME9Lu

I can add more info edit: here is my pseudo code, if it helps

 //takes input of string and retruns sqlReader //"Select * from " .tablename //result=connect using (SqlConnection conn = new SqlConnection(_ConnectionString)),fetchall //fetchall to do with sqlreader i ausume //return result 

by CCoder1 via /r/csharp

Leave a Reply