Beispiel #1
0
        private void OnRefresh()
        {
            DbProviders = DbProviderFactories.GetFactoryClasses().Rows.OfType <DataRow>()
                          .Select(x => new DbProvider
            {
                Name          = x["Name"]?.ToString(),
                Description   = x["Description"]?.ToString(),
                InvariantName = x["InvariantName"]?.ToString(),
            })
                          .OrderBy(x => x.Name)
                          .ToList();

            DbProvider = DbProviders.FirstOrDefault(x => x.Equals(_selectedProvider));
        }
Beispiel #2
0
 private void OnRefresh()
 {
     DbProviders = Database.DbProvider.GetRegisteredProviders().Select(x => x.Value.Info).ToList();
     DbProvider  = DbProviders.FirstOrDefault(x => x.Equals(_selectedProvider));
 }