예제 #1
0
        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"]);
        }
예제 #2
0
		public ToolTipPartition(PartitionDetailsModelBase dataModel)
		{
			InitializeComponent();

			DataContext = dataModel;
		}
예제 #3
0
        public ToolTipPartition(PartitionDetailsModelBase dataModel)
        {
            InitializeComponent();

            DataContext = dataModel;
        }