AddOracleVectorStore(IServiceCollection, Func<IServiceProvider, string>, Func<IServiceProvider, OracleVectorStoreOptions>?, ServiceLifetime)

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

Declaration

// C#
public static IServiceCollection AddOracleVectorStore(this IServiceCollection services, Func<IServiceProvider, string> connectionStringProvider, Func<IServiceProvider, OracleVectorStoreOptions>? optionsProvider = null, ServiceLifetime lifetime = ServiceLifeTime.Singleton)

Parameters

Return Value

Returns the service collection.

Exceptions

InvalidArgumentException: The provided connectionStringProvider or services parameter is null.