Suppose there are two tables in the database: the first table contains columns
Id, Alias, Title and it has entries:
1 | "SiteSettings" | "Настройки сайта", ... the second table contains columns
Id, ParentId, Alias, Title, Value, ValueType the contents of the table view:
1 | 1 | "AllowRegistration" | "Разрешить регистрацию" | "True", "System.Boolean", ... At the start of the application, a static cache is formed, a variable is added to it
dynamic Settings (Maybe something else should be used instead of dynamic?)
Well, actually the question itself: Is it possible to get something like this at the output:
Settings.SiteSettings.AllowRegistration And if so, how?