public static void VerifyOutcomeBatched(int expectedRowCount, int rowCount, DbCommand statement)
 {
     if (expectedRowCount > rowCount)
     {
         throw new StaleStateException(
                   ADOExceptionHelper.ExtendMessage(
                       $"Batch update returned unexpected row count from update; actual row count: {rowCount}; expected: {expectedRowCount}",
                       statement.CommandText,
                       null,
                       null)
                   );
     }
     if (expectedRowCount < rowCount)
     {
         throw new TooManyRowsAffectedException(
                   ADOExceptionHelper.ExtendMessage(
                       $"Batch update returned unexpected row count from update; actual row count: {rowCount}; expected: {expectedRowCount}",
                       statement.CommandText,
                       null,
                       null),
                   expectedRowCount,
                   rowCount);
     }
 }