will it have problem without datareader.hasrow? RRS feed

  • Question

  • User1215150307 posted

    if there is nothing select, will it have problem when using datareader.read() without datareader.hasrow()?

    Database db = DatabaseFactory.CreateDatabase();
    using (IDataReader datareader = db.ExecuteReader(CommandType.Text, queryString))

    Thursday, June 23, 2011 10:21 PM


  • User-1322853079 posted

    it  won't be an issue...,

    datareader.hasrow() need no not be used..

    we can use this way while reading records..




    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, June 23, 2011 10:44 PM