AddOracleCollection<TKey, TRecord>(IServiceCollection, string, Func<IServiceProvider, string>, Func<IServiceProvider, OracleCollectionsOptions>?, ServiceLifetime)

This method registers an OracleCollection as VectorStoreCollection, with the specified connection string provider and service lifetime.

Declaration

// C#
public static IServiceCollection AddOracleCollection<TKey, TRecord>(this IServiceCollection services, string name, Func<IServiceProvider, string> connectionStringProvider, Func<IServiceProvider, OracleCollectionsOptions>? optionsProvider = null, ServiceLifetime lifetime = ServiceLifeTime.Singleton) where TKey : notnull where TRecord : class

Parameters

Return Value

Returns the service collection.

Exceptions

InvalidArgumentException: