private static void MapPartitionSegmentData(IDataRecord reader, PartitionDetailsModelBase model)
        {
            var highValue = OracleReaderValueConvert.ToString(reader["HIGH_VALUE"]);

            model.HighValue           = highValue.Length > HighValueMaxLength ? $"{highValue.Substring(0, HighValueMaxLength)}{CellValueConverter.Ellipsis}" : highValue;
            model.TablespaceName      = OracleReaderValueConvert.ToString(reader["TABLESPACE_NAME"]);
            model.Logging             = (string)reader["LOGGING"] == "YES";
            model.Compression         = TextInfo.ToTitleCase(((string)reader["COMPRESSION"]).ToLowerInvariant());
            model.RowCount            = OracleReaderValueConvert.ToInt64(reader["NUM_ROWS"]);
            model.SampleRows          = OracleReaderValueConvert.ToInt64(reader["SAMPLE_SIZE"]);
            model.LastAnalyzed        = OracleReaderValueConvert.ToDateTime(reader["LAST_ANALYZED"]);
            model.BlockCount          = OracleReaderValueConvert.ToInt32(reader["BLOCKS"]);
            model.AverageRowSize      = OracleReaderValueConvert.ToInt32(reader["AVG_ROW_LEN"]);
            model.InMemoryCompression = OracleReaderValueConvert.ToString(reader["INMEMORY_COMPRESSION"]);
        }
Exemple #2
0
		public ToolTipPartition(PartitionDetailsModelBase dataModel)
		{
			InitializeComponent();

			DataContext = dataModel;
		}
        public ToolTipPartition(PartitionDetailsModelBase dataModel)
        {
            InitializeComponent();

            DataContext = dataModel;
        }