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