public ColumnSpec SetPropertyPath(PropertyPath value) { return(new ColumnSpec(this) { Name = value == null ? string.Empty : value.ToString() }); }
public IColumnCaption GetColumnCaption(PivotKey pivotKey) { IColumnCaption columnCaption; if (null != ColumnSpec.Caption) { columnCaption = ColumnCaption.UnlocalizableCaption(ColumnSpec.Caption); } else if (null == ColumnDescriptor) { columnCaption = ColumnCaption.UnlocalizableCaption(PropertyPath.ToString()); } else { columnCaption = DataSchema.GetColumnCaption(ColumnDescriptor); } return(QualifyColumnCaption(pivotKey, columnCaption)); }
public string GetColumnCaption(PivotKey pivotKey, ColumnCaptionType columnCaptionType) { string columnCaption; if (null != ColumnSpec.Caption) { columnCaption = ColumnSpec.Caption; } else if (null == ColumnDescriptor) { columnCaption = PropertyPath.ToString(); } else { columnCaption = DataSchema.GetColumnCaption(DataSchema.GetColumnCaption(ColumnDescriptor), columnCaptionType); } return(QualifyColumnCaption(pivotKey, columnCaption)); }
public ColumnSpec(PropertyPath propertyPath) { Name = propertyPath.ToString(); }
public FilterSpec SetColumnId(PropertyPath columnId) { return(SetColumn(columnId.ToString())); }
public FilterSpec(PropertyPath propertyPath, FilterPredicate predicate) { Column = propertyPath.ToString(); Predicate = predicate; }
public FilterSpec(PropertyPath propertyPath, IFilterOperation filterOperation, string operand) { Column = propertyPath.ToString(); OpName = filterOperation == null ? null : filterOperation.OpName; Operand = operand; }