following this changeset Extracted File IO Functions
https://github.com/nopSolutions/nopCommerce/commit/69ecaba79fd592c3b35dce0c344ed1481b59c56b
I use a second database and i send the path to dataSettingsManager
before the changeset we use CommonHelper, now I dont have access to INopFileProvider
var DataSettingsFilePath = "~/App_Data/secondDataBase.json";
DataSettingsFilePath = DataSettingsFilePath.Replace("~/", "").TrimStart('/').Replace('/', '\\');
//data layer
var dataSettingsManager = new DataSettingsManager();
var dataProviderSettings = dataSettingsManager.LoadSettings(DataSettingsFilePath, true);
please advice
P.S. it works like that from App_data but not from other folders