AddOracleCollection<TKey, TRecord>(IServiceCollection, string, Func<IServiceProvider, string>, Func<IServiceProvider, OracleCollectionsOptions>?, ServiceLifetime)

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

宣言

// C#
public static IServiceCollection AddOracleCollection<TKey, TRecord>(this IServiceCollection services, string name, Func<IServiceProvider, string> connectionStringProvider, Func<IServiceProvider, OracleCollectionsOptions>? optionsProvider = null, ServiceLifetime lifetime = ServiceLifeTime.Singleton) where TKey : notnull where TRecord : class

パラメータ

  • services

    VectorStoreを登録するIServiceCollection

  • name

    コレクションの名前。

  • connectionStringProvider

    接続文字列プロバイダ。

  • optionsProvider

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

  • lifetime

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

戻り値

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

例外

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