Пример #1
0
        public override async Task UpdateUserDetailsAsync(OracleSchemaModel dataModel, CancellationToken cancellationToken)
        {
            var userDetailDataProvider = new UserDataProvider(dataModel);
            var defaultTablespaceDetailDataProvider   = new TablespaceDetailDataProvider(dataModel.DefaultTablespaceModel);
            var defaultDatafileDataProvider           = new TablespaceFilesDataProvider(dataModel.DefaultTablespaceModel);
            var temporaryTablespaceDetailDataProvider = new TablespaceDetailDataProvider(dataModel.TemporaryTablespaceModel);
            var temporaryDatafileDataProvider         = new TablespaceFilesDataProvider(dataModel.TemporaryTablespaceModel);
            var profileDataProvider = new ProfileDetailsDataProvider(dataModel.ProfileModel);

            await UpdateModelAsync(true, cancellationToken, userDetailDataProvider, defaultTablespaceDetailDataProvider, temporaryTablespaceDetailDataProvider, defaultDatafileDataProvider, temporaryDatafileDataProvider, profileDataProvider);
        }
Пример #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);
        }