ActiveReports 18 .NET Edition
MESCIUS.ActiveReports.Aspnet.Designer Assembly / GrapeCity.ActiveReports.Aspnet.Designer Namespace / DesignerSettings Class / UseDataSetTemplates Method
Example

In This Topic
    UseDataSetTemplates Method (DesignerSettings)
    In This Topic
    Sets the data sets service for loading data definitions from a custom storage.
    Syntax
    'Declaration
     
    Public Sub UseDataSetTemplates( _
       ByVal dataSetsService As IDataSetsService _
    ) 
    public void UseDataSetTemplates( 
       IDataSetsService dataSetsService
    )

    Parameters

    dataSetsService
    Example
    // Implement the IDataSetsService. 
    // Please refer to our web samples for more details.
    public class CustomDataSetTemplates : IDataSetsService
    {
    	//implementation
    }
    
    var dataSetsService = new CustomDataSetTemplates();
    
    // Add service to middleware
    app.UseDesigner(config =>
    {
    	config.UseDataSetTemplates(dataSetsService);
    });
    See Also