예제 #1
0
 public ColumnValueSet(TableDefinition table, SnapshotColumnInfo column, List <object> values, List <object> references)
 {
     Table      = table;
     Column     = column;
     Values     = values;
     References = references;
 }
 public static void Format(ColumnConfig cc, TableDefinition table, SnapshotColumnInfo column)
 {
     cc.Heading(column.Name);
     if (column.ObservedTypes.All(NumericTypeHelper.IsNumeric))
     {
         cc.RightAlign();
     }
 }
예제 #3
0
        internal SnapshotColumnInfo ColumnAdded(string columnName, Type observedType = null)
        {
            var existing = _columns.SingleOrDefault(c => c.Name == columnName);

            if (existing == null)
            {
                existing = new SnapshotColumnInfo(columnName);
                _columns.Add(existing);
            }

            if (observedType != null)
            {
                existing.TypeObserved(observedType);
            }

            return(existing);
        }
예제 #4
0
 public UnpredictableColumn(SnapshotColumnInfo column, List <ReferencingColumns> referencingColumns)
 {
     Column             = column;
     ReferencingColumns = referencingColumns;
 }