Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Access database from ICustomConfigProvider implementation #7580


User avatar
0
enio created

As stated in the this issue we do have the possibility to pass custom values to the initial GetAll by providing an implementation of ICustomConfigProvider. My question is how can I load some data from the database within such an implementation? Obviously DI is not working at this part of the application :-(


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    You can get the service you need using the CustomConfigProviderContext.IocResolver parameter of the GetConfig method. Such as repository.