'Declaration Public Overloads Shadows Function ExecuteReader() As ZohoDataReader
public new ZohoDataReader ExecuteReader()
Return Value
A ZohoDataReader object.
'Declaration Public Overloads Shadows Function ExecuteReader() As ZohoDataReader
public new ZohoDataReader ExecuteReader()
public void CreateZohoDataReader(string mySelectQuery,string zohoConnectionString) { ZohoConnection zohoConnection = new ZohoConnection(zohoConnectionString); ZohoCommand zohoCommand = new ZohoCommand(mySelectQuery, zohoConnection); zohoCommand.Connection.Open(); ZohoDataReader zohoReader = zohoCommand.ExecuteReader(); try { while(zohoReader.Read()) { Console.WriteLine(zohoReader.GetString(0)); } } finally { zohoReader.Close(); zohoConnection.Close(); } }
Public Sub CreateZohoDataReader(mySelectQuery As String, _ zohoConnectionString As String) Dim zohoConnection As New ZohoConnection(zohoConnectionString) Dim zohoCommand As New ZohoCommand(mySelectQuery, zohoConnection) zohoCommand.Connection.Open() Dim zohoReader As ZohoDataReader = zohoCommand.ExecuteReader() Try While zohoReader.Read() Console.WriteLine(zohoReader.GetString(0)) End While Finally zohoReader.Close() zohoConnection.Close() End Try End Sub