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);
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
		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;
		}
Exemplo n.º 6
0
 protected abstract Database CreateDatabase(DataRow row, DatabaseCollection databases);
Exemplo n.º 7
0
		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;
		}