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
services
The
IServiceCollection
to register theVectorStore
on.connectionStringProvider
The connection string provider.
optionsProvider
Options provider to further configure the vector store.
lifetime
The 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.