private static Tbl_ApplicationSetting GetDefaultAppSettings()
        {
            var tblApplicationSetting = new Tbl_ApplicationSetting {
                IsMediaLocationSetup = false, IsDefaultSettings = true
            };

            return(tblApplicationSetting);
        }
        public ApplicationSettingsContext()
        {
            _lmdbDataContext       = new LMDBDataContext();
            _tblApplicationSetting = _lmdbDataContext.Tbl_ApplicationSettings.FirstOrDefault();

            if (_tblApplicationSetting == null)
            {
                AddDefaultApplicationSettings();

                _tblApplicationSetting = _lmdbDataContext.Tbl_ApplicationSettings.FirstOrDefault();
            }
        }
        private void Save(Tbl_ApplicationSetting tblApplicationSetting)
        {
            _lmdbDataContext.Tbl_ApplicationSettings.InsertOnSubmit(tblApplicationSetting);

            _lmdbDataContext.SubmitChanges();
        }