AddOracleVectorStore(IServiceCollection, Func<IServiceProvider, string>, Func<IServiceProvider, OracleVectorStoreOptions>?, ServiceLifetime)

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

宣言

// C#
public static IServiceCollection AddOracleVectorStore(this IServiceCollection services, Func<IServiceProvider, string> connectionStringProvider, Func<IServiceProvider, OracleVectorStoreOptions>? optionsProvider = null, ServiceLifetime lifetime = ServiceLifeTime.Singleton)

パラメータ

  • services

    VectorStoreを登録するIServiceCollection

  • connectionStringProvider

    接続文字列プロバイダ。

  • optionsProvider

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

  • lifetime

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

戻り値

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

例外

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