Base solution for your next web application
Open Closed

AbpFeatureValueStore Getting data from db #1466


User avatar
0
hans abelshausen created

Hi, I'm using Abp 0.7.5.0 I'm trying to get values stored in my database, but I only get the values stored in my application.dll In Core:

public class FeatureValueStore : AbpFeatureValueStore<Tenant, Role, User>
    {
        public FeatureValueStore(TenantManager tenantManager)
            : base(tenantManager)
        {
        }
        
    }

In Application:

public class AppFeatureProvider : FeatureProvider
    {
        public override void SetFeatures(IFeatureDefinitionContext context)
        {
            context.Create("Test", defaultValue: "false");
            context.Create("SecondTest", defaultValue: "50");
        }
    }

In ApplicationModule:

Configuration.Features.Providers.Add<AppFeatureProvider>();

And in my database in abpfeatures table 2 Test true 2016-07-28 08:45:00.400 2 NULL 1 FeatureSetting 3 SecondTest 3 2016-07-28 08:45:00.403 2 NULL 1 FeatureSetting

I thought abp.features.isEnabled for example is getting value from database like it works in abpsettings


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

    Hi,

    It's cached. If you made changes directly in DB, then you need to recycle on IIS (or re-build in VS) your application.