Table of Contents

Method AddDataSource

Namespace
LMKit.Retrieval
Assembly
LM-Kit.NET.dll

AddDataSource(DataSource)

Registers a new DataSource repository with this instance, enabling it to be included in subsequent data retrieval operations.

public void AddDataSource(DataSource dataSource)

Parameters

dataSource DataSource

The DataSource object representing the repository to be added. This must not be null, and it must not be a repository that is already managed by this instance.

Exceptions

ArgumentNullException

Thrown if dataSource is null.

ArgumentException

Thrown if the specified dataSource is already managed by this instance, indicating a duplicate entry.

InvalidModelException

Thrown if the DataSource model is not compatible with the ones used by this instance.