OracleCollection<TKey, TRecord>(string, string, OracleCollectionOptions?)

Instantiates a new instance of OracleCollection class using the provided connection string and collection name.

Declaration

// C#
OracleCollection<TKey, TRecord>(string connectionString, string collectionName, OracleCollectionOptions? options = default) 

Parameters

  • string

    The connection string which can be used to obtain database connections.

  • collectionName

    Name of the collection

  • options

    Optional vector collection configuration options.

Exceptions

  • ArgumentNullException: The provided dataSource or name parameter is null.
  • ArgumentException:
    • The provided collectionName parameter is null, an empty string or contains white spaces only.
    • The provided collectionName is not compliant with Oracle name standard.
    • The definition provided in OracleCollectionOptions.Definition cannot be mapped to an Oracle type based on the default/custom type mapping.