'Declaration Public Overloads Shadows Function ExecuteReader() As ZohoBooksDataReader
public new ZohoBooksDataReader ExecuteReader()
Return Value
A ZohoBooksDataReader object.
'Declaration Public Overloads Shadows Function ExecuteReader() As ZohoBooksDataReader
public new ZohoBooksDataReader ExecuteReader()
public void CreateZohoBooksDataReader(string mySelectQuery,string ZohoBooksConnectionString) { ZohoBooksConnection ZohoBooksConnection = new ZohoBooksConnection(ZohoBooksConnectionString); ZohoBooksCommand ZohoBooksCommand = new ZohoBooksCommand(mySelectQuery, ZohoBooksConnection); ZohoBooksCommand.Connection.Open(); ZohoBooksDataReader ZohoBooksReader = ZohoBooksCommand.ExecuteReader(); try { while(ZohoBooksReader.Read()) { Console.WriteLine(ZohoBooksReader.GetString(0)); } } finally { ZohoBooksReader.Close(); ZohoBooksConnection.Close(); } }
Public Sub CreateZohoBooksDataReader(mySelectQuery As String, _ ZohoBooksConnectionString As String) Dim ZohoBooksConnection As New ZohoBooksConnection(ZohoBooksConnectionString) Dim ZohoBooksCommand As New ZohoBooksCommand(mySelectQuery, ZohoBooksConnection) ZohoBooksCommand.Connection.Open() Dim ZohoBooksReader As ZohoBooksDataReader = ZohoBooksCommand.ExecuteReader() Try While ZohoBooksReader.Read() Console.WriteLine(ZohoBooksReader.GetString(0)) End While Finally ZohoBooksReader.Close() ZohoBooksConnection.Close() End Try End Sub