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

How to add settings in ABPSettings database table? #3660


User avatar
0
ShaneFryer4184 created

I am creating Mypreferences where I can give tenants an option to change time, date, currency as per their needs. For that I have created a new table called mypreferences. But now I am thinking to add the settings in AbpSettings table.

I tried this but it is not allowing me and giving me error "There is no settings defined with name 'Abp.Preferences.MyPreferences'". I think it is coming directly from dll. Is there a way where can store settings in AbpSettings table ?

Guide me.


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

    Hi,

    You need to define your settings in AppSettingProvider. For ASP.NET Core version, it is here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/master/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Core/Configuration/AppSettingProvider.cs">https://github.com/aspnetzero/aspnet-ze ... rovider.cs</a>.

    You can find the correct file in MVC 5.x version with same name.

    Thanks.