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); } }
private static void SetBasePartitionData(PartitionDetailsModelBase dataModel, OraclePartitionReference partitionReference) { dataModel.Owner = partitionReference.DataObjectReference.SchemaObject.FullyQualifiedName; dataModel.Name = partitionReference.NormalizedName.Trim('"'); }
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); } }