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
-
servicesThe
IServiceCollectionto register theVectorStoreon. -
connectionStringProviderThe connection string provider.
-
optionsProviderOptions provider to further configure the vector store.
-
lifetimeThe service lifetime for the store. Defaults to
ServiceLifetime.Singleton.
Return Value
Returns the service collection.
Exceptions
InvalidArgumentException: The provided connectionStringProvider or services parameter is null.