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

このメソッドは、指定された接続文字列およびサービス存続期間を使用して、キーが指定されたOracleCollection<TKey, TRecord>を、VectorStoreCollectionとして登録します。

宣言

// 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

パラメータ

  • services

    VectorStoreを登録するIServiceCollection

  • serviceKey

    ベクトル・コレクションに関連付けるキー。

  • name

    コレクションの名前。

  • connectionString

    接続文字列です。

  • optionsProvider

    ベクトル・ストアを詳細に構成するための省略可能なオプション・プロバイダ。

  • lifetime

    ストアのサービス存続期間。デフォルトはServiceLifetime.Singletonです。

戻り値

サービス・コレクションを返します。