[]
Gets or sets the function to locate the data source.
public Func<object> LocateDataSource { get; set; }
Type | Description |
---|---|
Func<object> | A Func<TResult> that returns the data source object. |
app.UseReportDesigner(config =>
{
// An example for JSON provider.
config.LocateDataSource = () => "[{\"id\":1,\"name\":\"A\"},{\"id\":2,\"name\":\"B\"}]";
});