[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Core.Rendering.Data.IDbConnectionAdapterWithDataSource.SetDataSourceLocator

SetDataSourceLocator Method

SetDataSourceLocator(IDbConnection, Action<LocateDataSourceArgs>)

Sets the data source getter function for the specified database connection command.

Declaration
bool SetDataSourceLocator(IDbConnection command, Action<LocateDataSourceArgs> func)
Parameters
Type Name Description
IDbConnection command

The database connection command that needs to be assigned a data source.

Action<LocateDataSourceArgs> func

The function which returns the data source for the command.

Returns
Type Description
bool

true if the locator is set successfully; otherwise, false.