AddOracleCollection<TKey, TRecord>(IServiceCollection, string, string, OracleCollectionOptions?, ServiceLifetime)

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

Declaration

// C#
public static IServiceCollection AddOracleCollection<TKey, TRecord>(this IServiceCollection services,string name,string connectionString,OracleCollectionOptions? options = default,ServiceLifetime lifetime = ServiceLifetime.Singleton)where TKey : notnullwhere TRecord : class

Parameters

Return Value

Returns the service collection.

Exceptions

InvalidArgumentException