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

Activities of "sarausan"

Hi,

after reading <a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Setting-Management">http://www.aspnetboilerplate.com/Pages/ ... Management</a> it is not clear to me how to store settings in a dbcontext.

I have a context created using the Module-Zero migrations and the following code:

Configuration.Settings.Providers.Add<AppSettingProvider>();

public class AppSettingProvider : SettingProvider { public override IEnumerable<SettingDefinition> GetSettingDefinitions(SettingDefinitionProviderContext context) { return new List<SettingDefinition> { new SettingDefinition("CustomSetting1", "TestValue1", scopes: SettingScopes.Application), new SettingDefinition("CustomSetting2", "TestValue2", scopes: SettingScopes.Application) }; } }

How can I store those settings in the database?

Thanks

Showing 1 to 1 of 1 entries