private static void BindOptions(OracleCommand cmd, OracleOptions opt) { cmd.AddRowid = opt.AddRowid; cmd.BindByName = opt.BindByName; if (opt.InitializeLOBFetchSize != null) { cmd.InitialLOBFetchSize = opt.InitializeLOBFetchSize.Value; } if (opt.InitializeLONGFetchSize != null) { cmd.InitialLONGFetchSize = opt.InitializeLONGFetchSize.Value; } if (opt.FetchSize != null) { cmd.FetchSize = opt.FetchSize.Value; } }
public OracleMonitoringApi(IOptions <OracleOptions> options, IStorageInitializer initializer) { _options = options.Value ?? throw new ArgumentNullException(nameof(options)); _pubName = initializer.GetPublishedTableName(); _recName = initializer.GetReceivedTableName(); }