protected override Database CreateDatabase(DataRow row, DatabaseCollection databases)
        {
            Database db = new iCodeGenerator.DatabaseStructure.Database();

            db.Name = row["USERNAME"].ToString();
            return(db);
        }
        protected override Database CreateDatabase(DataRow row, DatabaseCollection databases)
        {
            Database db = new Database();

            db.Name = row["DATABASE"].ToString();
            return(db);
        }
        protected override Database CreateDatabase(DataRow row, DatabaseCollection databases)
        {
            var database = new Database
            {
                Name = row["datname"].ToString()
            };

            return(database);
        }
        protected internal DatabaseCollection GetDatabases()
        {
            DatabaseCollection        databases = new DatabaseCollection();
            DataAccessProviderFactory dataAccessProviderFactory = new DataAccessProviderFactory(Server.ProviderType);
            IDbConnection             connection = dataAccessProviderFactory.CreateConnection(Server.ConnectionString);

            DataSet ds = DatabaseSchema(dataAccessProviderFactory, connection);

            foreach (DataRow row in ds.Tables[0].Rows)
            {
                databases.Add(CreateDatabase(row, databases));
            }
            return(databases);
        }
		protected internal DatabaseCollection GetDatabases()
		{
			DatabaseCollection databases = new DatabaseCollection();
			DataAccessProviderFactory dataAccessProviderFactory = new DataAccessProviderFactory(Server.ProviderType);
			IDbConnection connection = dataAccessProviderFactory.CreateConnection(Server.ConnectionString);

			DataSet ds = DatabaseSchema(dataAccessProviderFactory, connection);			

			foreach (DataRow row in ds.Tables[0].Rows)
			{
				databases.Add(CreateDatabase(row, databases));
			}
			return databases;
		}
 protected abstract Database CreateDatabase(DataRow row, DatabaseCollection databases);
		protected abstract Database CreateDatabase(DataRow row, DatabaseCollection databases);
 protected override Database CreateDatabase(DataRow row, DatabaseCollection databases)
 {
     Database db = new iCodeGenerator.DatabaseStructure.Database();
     db.Name = row["datname"].ToString();
     return db;
 }
		protected override Database CreateDatabase(DataRow row, DatabaseCollection databases)
		{			
			Database db = new Database();
			db.Name = row["DATABASE_NAME"].ToString();
			return db;
		}