public _EntityColumn(ColumnDescription entityColumn, object queryName) : base(new ColumnToken(entityColumn, queryName), null !) { if (!entityColumn.IsEntity) { throw new ArgumentException("entityColumn"); } }
internal ColumnToken(ColumnDescription column, object queryName) : base(null) { if (column == null) throw new ArgumentNullException("column"); if (queryName == null) throw new ArgumentNullException("queryName"); this.column = column; this.queryName = queryName; }
public ColumnToken(ColumnDescription column, object queryName) : base(null) { if (column == null) { throw new ArgumentNullException("column"); } if (queryName == null) { throw new ArgumentNullException("queryName"); } this.column = column; this.queryName = queryName; }
public Column(ColumnDescription cd, object queryName) : this(new ColumnToken(cd, queryName), cd.DisplayName) { }
public ColumnToken(ColumnDescription column, object queryName) { this.column = column ?? throw new ArgumentNullException(nameof(column)); this.queryName = queryName ?? throw new ArgumentNullException(nameof(queryName)); }
public _EntityColumn(ColumnDescription entityColumn, object queryName) : base(new ColumnToken(entityColumn, queryName), null) { if (!entityColumn.IsEntity) throw new ArgumentException("entityColumn"); }
static bool Similar(this Column column, ColumnDescription other) { return column.Token is ColumnToken && ((ColumnToken)column.Token).Column.Name == other.Name && column.DisplayName == null; }
public ColumnDescriptionTS(ColumnDescription a, object queryName) { var token = new ColumnToken(a, queryName); this.name = a.Name; this.type = new TypeReferenceTS(a.Type, a.Implementations); this.filterType = QueryUtils.TryGetFilterType(a.Type); this.typeColor = token.TypeColor; this.niceTypeName = token.NiceTypeName; this.isGroupable = token.IsGroupable; this.unit = a.Unit; this.format = a.Format; this.displayName = a.DisplayName; this.propertyRoute = token.GetPropertyRoute()?.ToString(); }