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