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

Return Value

Returns the service collection.