New to Telerik Report ServerStart a free 30-day trial

EF Core Data Source Management

Updated on May 20, 2026

The Report Server for .NET can use custom .NET assemblies containing Entity Framework Core DbContext types to provide data for reports. Once registered, the EF Core data source is available during the design-time of reports via the EntityCoreDataSource Component.

How to Bind to an EF Core Data Source

  1. Create an assembly containing your DbContext type. The DbContext must conform to the DbContext Requirements.

  2. Build the project using dotnet publish to produce the assembly along with all its dependencies.

  3. Copy the assembly and its dependencies to the root folder of the Report Server web application. The default path is C:\Program Files (x86)\Progress\Telerik Report Server .NET\Telerik.ReportServer.Web\.

  4. Declare the assembly in the appsettings.json file of the Report Server web application according to the instructions in the Extending Reporting Engine with Custom Assemblies article. The configuration should look similar to:

    json
    {
    	"telerikReporting": {
    		"assemblyReferences": [
    			{
    				"name": "MyEfCoreAssembly"
    			}
    		]
    	}
    }

    After modifying appsettings.json, restart the Report Server application (for example, recycle the IIS application pool or restart the service) for the changes to take effect.

    When the Report Server is upgraded to a newer version, the appsettings.json file may be overwritten, and any changes applied to it will be lost. It is recommended to perform a file backup before upgrading.

  5. Allow user access to the custom EF Core data source — after the assembly is present in the root folder and declared in the configuration file, a read-only data connection entry will be displayed for it in the Data Connections View. This data connection entry can be used to control the user access to the assembly via User Roles.

    Add permission dialog for the EfCoreContext data connection in the User Roles view, with Read access mode selected.
  6. Create a New Report.

  7. Create a new EntityCoreDataSource Component and follow the EntityCoreDataSource Wizard to select a DbContext type, a data-retrieval member, and configure any data source parameters:

    The DbContext type will show in the wizard only when the currently logged-in user has Read permissions for the corresponding data connection.