Ejemplo n.º 1
0
        public override async Task UpdateColumnDetailsAsync(OracleObjectIdentifier objectIdentifier, string columnName, ColumnDetailsModel dataModel, CancellationToken cancellationToken)
        {
            var columnDetailDataProvider          = new ColumnDetailDataProvider(dataModel, objectIdentifier, columnName);
            var columnCommentDataProvider         = new CommentDataProvider(dataModel, objectIdentifier, columnName);
            var columnConstraintDataProvider      = new ConstraintDataProvider(dataModel, objectIdentifier, columnName);
            var columnIndexesDataProvider         = new IndexDetailDataProvider(dataModel, objectIdentifier, columnName);
            var indexColumnDataProvider           = new IndexColumnDataProvider(dataModel, objectIdentifier, columnName);
            var detailHistogramDataProvider       = new ColumnDetailHistogramDataProvider(dataModel, objectIdentifier, columnName);
            var columnInMemoryDetailsDataProvider = new ColumnDetailInMemoryDataProvider(dataModel, objectIdentifier, columnName, Version);

            await UpdateModelAsync(true, cancellationToken, columnDetailDataProvider, columnCommentDataProvider, columnConstraintDataProvider, columnIndexesDataProvider, indexColumnDataProvider, detailHistogramDataProvider, columnInMemoryDetailsDataProvider);
        }
Ejemplo n.º 2
0
        public override async Task UpdateTableDetailsAsync(OracleObjectIdentifier objectIdentifier, TableDetailsModel dataModel, CancellationToken cancellationToken)
        {
            var tableDetailDataProvider     = new TableDetailDataProvider(dataModel, objectIdentifier);
            var spaceAllocationDataProvider = new TableSpaceAllocationDataProvider(dataModel, objectIdentifier, String.Empty);
            var tableCommentDataProvider    = new CommentDataProvider(dataModel, objectIdentifier, null);
            var tableInMemorySpaceAllocationDataProvider = new TableInMemorySpaceAllocationDataProvider(dataModel, objectIdentifier, Version);
            var indexDetailDataProvider      = new IndexDetailDataProvider(dataModel, objectIdentifier, null);
            var indexColumnDataProvider      = new IndexColumnDataProvider(dataModel, objectIdentifier, null);
            var partitionDataProvider        = new PartitionDataProvider(dataModel, objectIdentifier, Version);
            var tablespaceDetailDataProvider = new TablespaceDetailDataProvider(dataModel.TablespaceDataModel);
            var datafileDataProvider         = new TablespaceFilesDataProvider(dataModel.TablespaceDataModel);

            await UpdateModelAsync(true, cancellationToken, tableDetailDataProvider, tableCommentDataProvider, spaceAllocationDataProvider, tableInMemorySpaceAllocationDataProvider, indexDetailDataProvider, indexColumnDataProvider, partitionDataProvider.PartitionDetailDataProvider, partitionDataProvider.SubPartitionDetailDataProvider, tablespaceDetailDataProvider, datafileDataProvider);
        }