/// <inheritdoc/> public string GetSetting(string key) { string sql = @"select * from Settings where [Key] = @Key"; var res = _db.LoadDataSingle <dynamic, SettingModel>(sql, new { Key = key }); if (res is null) { return(null); } else { return(res.Value); } }