public void ExecutePaged(OracleConnection myConnection, int StartRow, int PageLength)
{
OracleCommand myCommand = new OracleCommand("SELECT * FROM Test.Dept", myConnection);
myConnection.Open();
OracleDataReader myReader = myCommand.ExecutePageReader(System.Data.CommandBehavior.Default,StartRow,PageLength);
try
{
while (myReader.Read())
{
Console.WriteLine(myReader.GetInt32(0) + ", " + myReader.GetString(1) + ", " + myReader.GetString(2));
}
}
finally
{
myReader.Close();
myConnection.Close();
}
}