mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 06:11:10 +00:00
Implements directory browser dialog, part 6: hidden file system items toggle
This commit is contained in:
1 parent
cd44f11d9e
commit
debad9ef74
74 files changed
+596
-427
No files matched your search
@@ -34,13 +34,13 @@ public static class SharedConfiguration
|
||||
|
||||
// bind the common settings section
|
||||
services.AddOptions<CommonSettingsModel>()
|
||||
.Bind(configuration.GetRequiredSection(CommonSettingsModel.SectionName))
|
||||
.Bind(configuration.GetRequiredSection(CommonSettingsModel.SECTION_NAME))
|
||||
.ValidateFluently()
|
||||
.ValidateOnStart();
|
||||
|
||||
// bind the database connection string section
|
||||
services.AddOptions<DatabaseSettingsModel>()
|
||||
.Bind(configuration.GetRequiredSection(DatabaseSettingsModel.SectionName))
|
||||
.Bind(configuration.GetRequiredSection(DatabaseSettingsModel.SECTION_NAME))
|
||||
.ValidateFluently()
|
||||
.ValidateOnStart();
|
||||
return services;
|
||||
|
||||
@@ -1,12 +1,17 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Infrastructure.Common.Models.Configuration;
|
||||
|
||||
/// <summary>
|
||||
/// Model for deserializing shared application configuration settings.
|
||||
/// </summary>
|
||||
[DebuggerDisplay("{SECTION_NAME}")]
|
||||
public class CommonSettingsModel
|
||||
{
|
||||
#region ================================================================== FIELD MEMBERS ================================================================================
|
||||
public const string SectionName = "CommonSettings";
|
||||
public const string SECTION_NAME = "CommonSettings";
|
||||
#endregion
|
||||
|
||||
#region ==================================================================== PROPERTIES =================================================================================
|
||||
@@ -15,4 +20,4 @@ public class CommonSettingsModel
|
||||
/// </summary>
|
||||
public required string Theme { get; init; }
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -1,12 +1,17 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Infrastructure.Common.Models.Configuration;
|
||||
|
||||
/// <summary>
|
||||
/// Model for deserializing database configuration settings.
|
||||
/// </summary>
|
||||
[DebuggerDisplay("{SECTION_NAME}")]
|
||||
public class DatabaseSettingsModel
|
||||
{
|
||||
#region ================================================================== FIELD MEMBERS ================================================================================
|
||||
public const string SectionName = "ConnectionStrings";
|
||||
public const string SECTION_NAME = "ConnectionStrings";
|
||||
#endregion
|
||||
|
||||
#region ==================================================================== PROPERTIES =================================================================================
|
||||
@@ -15,4 +20,4 @@ public class DatabaseSettingsModel
|
||||
/// </summary>
|
||||
public required string DefaultConnection { get; init; }
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user