AddOracleCollection<TKey, TRecord>(this IServiceCollection, string, OracleCollectionOptions?, ServiceLifetime)

This method registers an OracleCollection as VectorStoreCollection, with the OracleDataSource retrieved from the IServiceCollection.

Declaration

// C#
public static IServiceCollection AddOracleCollection(this IServiceCollection services, string name, OracleCollectionsOptions? options = null, ServiceLifetime lifetime = ServiceLifeTime.Singleton) where TKey : notnull where TRecord : class;

Parameters

Return Value

Returns the service collection.

Exceptions

InvalidArgumentException:

InvalidOperationException: The service collection does not contain an OracleDataSource.