public SubPartitionDetailDataProviderInternal(SubPartitionDetailsModel dataModel, bool includeInMemorySettings) : base(null) { _subPartitionOwner = dataModel.Owner; _subPartitionDataModel = dataModel; _includeInMemorySettings = includeInMemorySettings; }
public override async Task UpdateSubPartitionDetailsAsync(SubPartitionDetailsModel dataModel, CancellationToken cancellationToken) { var partitionDataProvider = new PartitionDataProvider(dataModel, Version); var spaceAllocationDataProvider = new TableSpaceAllocationDataProvider(dataModel, dataModel.Owner, dataModel.Name); await UpdateModelAsync(true, cancellationToken, partitionDataProvider.SubPartitionDetailDataProvider, spaceAllocationDataProvider); }
public void VisitPartitionReference(OraclePartitionReference partitionReference) { if (partitionReference.Partition == null) { return; } var databaseModel = partitionReference.Container.SemanticModel.DatabaseModel; if (partitionReference.Partition is OracleSubPartition subPartition) { var subPartitionDetail = new SubPartitionDetailsModel(); SetBasePartitionData(subPartitionDetail, partitionReference); databaseModel.UpdateSubPartitionDetailsAsync(subPartitionDetail, CancellationToken.None); ToolTip = new ToolTipPartition(subPartitionDetail); } else { var partitionDetail = new PartitionDetailsModel(16); SetBasePartitionData(partitionDetail, partitionReference); databaseModel.UpdatePartitionDetailsAsync(partitionDetail, CancellationToken.None); ToolTip = new ToolTipPartition(partitionDetail); } }
public void AddSubPartition(SubPartitionDetailsModel subPartition) { _subPartitionDetailsDictionary.Add(subPartition.Name, subPartition); if (_visibleSubPartitionDetails.Count < VisibleSubPartitionCount) { _visibleSubPartitionDetails.Add(subPartition); } else { RaisePropertyChanged(nameof(MoreSubPartitionsExistMessageVisibility)); RaisePropertyChanged(nameof(VisibleSubPartitionCount)); RaisePropertyChanged(nameof(SubPartitionCount)); } }
public void AddSubPartition(SubPartitionDetailsModel subPartition) { _subPartitionDetailsDictionary.Add(subPartition.Name, subPartition); if (_visibleSubPartitionDetails.Count < VisibleSubPartitionCount) { _visibleSubPartitionDetails.Add(subPartition); } else { RaisePropertyChanged(nameof(MoreSubPartitionsExistMessageVisibility)); RaisePropertyChanged(nameof(VisibleSubPartitionCount)); RaisePropertyChanged(nameof(SubPartitionCount)); } }
public override Task UpdateSubPartitionDetailsAsync(SubPartitionDetailsModel dataModel, CancellationToken cancellationToken) { SetPartitionDetails(dataModel); return Task.FromResult<object>(null); }
public void VisitPartitionReference(OraclePartitionReference partitionReference) { if (partitionReference.Partition == null) { return; } var databaseModel = partitionReference.Container.SemanticModel.DatabaseModel; var subPartition = partitionReference.Partition as OracleSubPartition; if (subPartition != null) { var subPartitionDetail = new SubPartitionDetailsModel(); SetBasePartitionData(subPartitionDetail, partitionReference); databaseModel.UpdateSubPartitionDetailsAsync(subPartitionDetail, CancellationToken.None); ToolTip = new ToolTipPartition(subPartitionDetail); } else { var partitionDetail = new PartitionDetailsModel(16); SetBasePartitionData(partitionDetail, partitionReference); databaseModel.UpdatePartitionDetailsAsync(partitionDetail, CancellationToken.None); ToolTip = new ToolTipPartition(partitionDetail); } }
public abstract Task UpdateSubPartitionDetailsAsync(SubPartitionDetailsModel dataModel, CancellationToken cancellationToken);
public PartitionDataProvider(SubPartitionDetailsModel dataModel, Version oracleVersion) { SubPartitionDetailDataProvider = new SubPartitionDetailDataProviderInternal(dataModel, InMemoryHelper.HasInMemorySupport(oracleVersion)); }