Settings.cs 602 B

12345678910111213141516171819202122232425
  1. using System.Text.Json.Serialization;
  2. namespace Quadarax.Application.QLiberace.Common.Configuration
  3. {
  4. public class Settings
  5. {
  6. [JsonPropertyName("modules")]
  7. public IList<ModuleConfiguration> Modules { get; set; }
  8. public Settings()
  9. {
  10. Modules = new List<ModuleConfiguration>();
  11. }
  12. }
  13. public class ModuleConfiguration
  14. {
  15. [JsonPropertyName("code")]
  16. public string Code { get; set; }
  17. [JsonPropertyName("connection-string")]
  18. public string ConnectionString { get; set; }
  19. }
  20. }