AddKeyedOracleCollection<TKey, TRecord>(IServiceCollection, object?, string, string,OracleCollectionOptions?, ServiceLifetime)
このメソッドは、指定された接続文字列およびサービス存続期間を使用して、キーが指定されたOracleCollection<TKey, TRecord>を、VectorStoreCollectionとして登録します。
宣言
// C#
public static IServiceCollection AddKeyedOracleCollection<TKey, TRecord>(this IServiceCollection services, object? serviceKey, string name, string connectionString, OracleCollectionOptions? options = default, ServiceLifetime lifetime = ServiceLifetime.Singleton) where TKey : notnull where TRecord : classパラメータ
servicesVectorStoreを登録するIServiceCollection。serviceKeyベクトル・コレクションに関連付けるキー。
nameコレクションの名前。
connectionString接続文字列です。
optionsProviderベクトル・ストアを詳細に構成するための省略可能なオプション・プロバイダ。
lifetimeストアのサービス存続期間。デフォルトは
ServiceLifetime.Singletonです。
戻り値
サービス・コレクションを返します。