Settings.cs 622 B

1234567891011121314151617181920212223242526
  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; } = null!;
  17. [JsonPropertyName("connection-string")]
  18. public string ConnectionString { get; set; } = null!;
  19. }
  20. }