ericmend / oracleClientCore-2.0

Unofficial Oracle Client for .Net Core
MIT License
31 stars 6 forks source link

Timeout doesn't work #12

Closed Pradhyo closed 6 years ago

Pradhyo commented 6 years ago

I tried what's here but it fetched data beyond the timeout I set in seconds.

      using (OracleConnection connection = new OracleConnection(connectionString))
      {
        OracleCommand command = new OracleCommand(selectStatement, connection);
        command.Connection.Open();

        using (OracleDataAdapter da = new OracleDataAdapter(command))
        {
          da.SelectCommand.CommandTimeout = 30;
          da.Fill(dataTable);
          command.Connection.Close();
          da.Dispose();
        }
      }
ericmend commented 6 years ago

Olá @Pradhyo . Recomendo a você, usar o nuget, ainda beta, da Oracle: https://www.nuget.org/packages/Oracle.ManagedDataAccess.Core

Pradhyo commented 6 years ago

Thanks for getting back.