You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
701 B
C#
21 lines
701 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
namespace Common.Library.Settings
|
|
{
|
|
public static class SettingsLoader
|
|
{
|
|
public static IConfiguration Configuration { get; set; }
|
|
|
|
#region DB
|
|
public static string DBName { get => Configuration?.GetSection("Database")["DBName"]; }
|
|
public static string DBHost { get => Configuration?.GetSection("Database")["Host"]; }
|
|
public static string DBUserName { get => Configuration?.GetSection("Database")["UserName"]; }
|
|
public static string DBPassword { get => Configuration?.GetSection("Database")["Password"]; }
|
|
|
|
#endregion
|
|
}
|
|
}
|