OverlayConfigAttribute class
namespace: Serenity.ComponentModel assembly: Serenity.Net.Core
Makes the value of a property of a DbSettingsAttribute class, when it is set in the database, also the value of another configuration key, e.g. "Localization:BaseLanguage", so that the existing options class of that section gets it. This is the only way a value from the database can reach a key outside the "DbSettings" section, and only the one key that is named here.
[AttributeUsage(AttributeTargets.Property, Inherited = false)]
public class OverlayConfigAttribute : Attribute
Public Members
| name | description |
|---|---|
| OverlayConfigAttribute(…) | Creates an instance of the attribute for a configuration key. (2 constructors) |
| Key { get; } | The full configuration key that is overlaid. |
| OptionsType { get; } | The options class of the overlaid property, when the attribute was created with one. |
See Also
- Source: OverlayConfigAttribute.cs