'Declaration Public Overloads Shadows Function ExecuteReader() As MagentoDataReader
public new MagentoDataReader ExecuteReader()
Return Value
A MagentoDataReader object.
'Declaration Public Overloads Shadows Function ExecuteReader() As MagentoDataReader
public new MagentoDataReader ExecuteReader()
public void CreateMagentoDataReader(string mySelectQuery,string magentoConnectionString) { MagentoConnection magentoConnection = new MagentoConnection(magentoConnectionString); MagentoCommand magentoCommand = new MagentoCommand(mySelectQuery, magentoConnection); magentoCommand.Connection.Open(); MagentoDataReader magentoReader = magentoCommand.ExecuteReader(); try { while(magentoReader.Read()) { Console.WriteLine(magentoReader.GetString(0)); } } finally { magentoReader.Close(); magentoConnection.Close(); } }
Public Sub CreateMagentoDataReader(mySelectQuery As String, _ magentoConnectionString As String) Dim magentoConnection As New MagentoConnection(magentoConnectionString) Dim magentoCommand As New MagentoCommand(mySelectQuery, magentoConnection) magentoCommand.Connection.Open() Dim magentoReader As MagentoDataReader = magentoCommand.ExecuteReader() Try While magentoReader.Read() Console.WriteLine(magentoReader.GetString(0)) End While Finally magentoReader.Close() magentoConnection.Close() End Try End Sub
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2