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);
        }
예제 #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);
        }
예제 #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;
		}
예제 #6
0
 protected abstract Database CreateDatabase(DataRow row, DatabaseCollection databases);
예제 #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;
		}