Beispiel #1
0
        /// <summary>
        /// Gets all of the schema in one call.
        /// </summary>
        /// <returns></returns>
        public DatabaseSchema ReadAll(List <string> lstLoadType)
        {
            _fixUp = false;
            DataTypes();
            if (lstLoadType.Contains("用户"))
            {
                AllUsers();
            }
            if (lstLoadType.Contains("表"))
            {
                AllTables();
            }
            if (lstLoadType.Contains("视图"))
            {
                AllViews();
            }
            if (lstLoadType.Contains("存储过程&函数"))
            {
                AllStoredProcedures();
            }
            //oracle extra
            DatabaseSchema.Sequences.Clear();
            var sequences = _schemaReader.Sequences();

            DatabaseSchema.Sequences.AddRange(SchemaProcedureConverter.Sequences(sequences));

            _fixUp = true;
            UpdateReferences();

            return(_db);
        }
        private void AllSequences()
        {
            RaiseReadingProgress(SchemaObjectType.Sequences);
            var sequences = _schemaReader.Sequences();

            ReaderEventArgs.RaiseEvent(ReaderProgress, this, ProgressType.Processing, SchemaObjectType.Sequences);
            DatabaseSchema.Sequences.Clear();
            DatabaseSchema.Sequences.AddRange(SchemaProcedureConverter.Sequences(sequences));
        }
Beispiel #3
0
        /// <summary>
        /// Gets all of the schema in one call.
        /// </summary>
        /// <returns></returns>
        public DatabaseSchema ReadAll()
        {
            _fixUp = false;
            DataTypes();
            AllUsers();
            AllTables();
            AllViews();

            AllStoredProcedures();
            //oracle extra
            DatabaseSchema.Sequences.Clear();
            var sequences = _sr.Sequences();

            DatabaseSchema.Sequences.AddRange(SchemaProcedureConverter.Sequences(sequences));

            _fixUp = true;
            UpdateReferences();

            return(_db);
        }
        public override IList <DatabaseSequence> Sequences(string name)
        {
            var sequences = _schemaReader.Sequences();

            return(SchemaProcedureConverter.Sequences(sequences));
        }