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)パラメータ
servicesVectorStoreを登録するIServiceCollection。connectionStringProvider接続文字列プロバイダ。
optionsProviderベクトル・ストアを詳細に構成するためのオプション・プロバイダ。
lifetimeストアのサービス存続期間。デフォルトは
ServiceLifetime.Singletonです。
戻り値
サービス・コレクションを返します。
例外
InvalidArgumentException: 指定されたconnectionStringProviderまたはservicesパラメータがnullです。