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