示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BaseDataAccess" /> class.
        /// </summary>
        /// <param name="configuration">The configuration.</param>
        public Db(DbConfigSettingsElement configuration)
        {
            ConnectionString = configuration.ToString();
            var outputString = $"Host={configuration.HostName};Port={configuration.Port};Database={configuration.Database};User Id={configuration.Username};Password=*******;";

            Log.Info(outputString);
        }
示例#2
0
 public Settings()
 {
     DbConfig = new DbConfigSettingsElement();
     Ui       = new UiSettingsElement();
 }