AddKeyedOracleCollection<TKey, TRecord>(IServiceCollection, object?, string, string,OracleCollectionOptions?, ServiceLifetime)
This method registers a keyed OracleCollection<TKey, TRecord>
as VectorStoreCollection
, with the specified connection string and service lifetime.
Declaration
// C#
public static IServiceCollection AddKeyedOracleCollection<TKey, TRecord>(this IServiceCollection services, object? serviceKey, string name, string connectionString, OracleCollectionOptions? options = default, ServiceLifetime lifetime = ServiceLifetime.Singleton) where TKey : notnull where TRecord : class
Parameters
services
The
IServiceCollection
to register theVectorStore
on.serviceKey
The key to associate with the vector collection.
name
The name of the collection.
connectionString
The connection string.
optionsProvider
The optional 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.