Beispiel #1
0
 private IDatabaseType CreateDatabaseType(IDataSource dataSource)
 {
     using (var connection = dataSource.GetDbProviderFactory().CreateConnection())
     {
         connection.ConnectionString = dataSource.GetConnectionString();
         return(DatabaseTypes.GetDataBaseTypeByDbConnection(connection));
     }
 }