Hi ,
I am using bold reports in my .net core razor application. The application uses entity framework for data access and standard scaffolded code. In appsettings.json I define the connection strings as
"AllowedHosts": "*",
"ConnectionStrings": {
"WorkManagerV4Context": "Server=WIN10DESKTOP\\VS2019;Database=WorkmanagerV5;Trusted_Connection=True;MultipleActiveResultSets=true"
}
In my bold reports I notice that the sql server information is hard coded into the definition of each report:
<DataSources>
<DataSource Name="DataSource1">
<ConnectionProperties>
<DataProvider>SQL</DataProvider>
<ConnectString>Data Source=WIN10DESKTOP\VS2019;Initial Catalog=WorkManagerV4</ConnectString>
<IntegratedSecurity>true</IntegratedSecurity>
</ConnectionProperties>
<rd:SecurityType>Integrated</rd:SecurityType>
<rd:DataSourceID>d435ec7e-2564-47a6-a21f-dad31354076d</rd:DataSourceID>
</DataSource>
</DataSources>
Is there any way of having all the bold report definitions be referencing the datasource in appsettings.json or just once somewhere in my .net c# code- so that if that source changes each report definition doesnt have to also be changed?
Thanks