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

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

宣言

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

パラメータ

  • services

    VectorStoreを登録するIServiceCollection

  • name

    コレクションの名前。

  • connectionString

    接続文字列です。

  • options

    ベクトル・ストアを詳細に構成するためのオプション。

  • lifetime

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

戻り値

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

例外

InvalidArgumentException

  • 指定されたservicesパラメータがnullです。
  • 指定されたconnectionStringまたはnameパラメータがnullまたは空です。