Inheritance: ISerializable
示例#1
0
 public _EntityColumn(ColumnDescription entityColumn, object queryName)
     : base(new ColumnToken(entityColumn, queryName), null !)
 {
     if (!entityColumn.IsEntity)
     {
         throw new ArgumentException("entityColumn");
     }
 }
示例#2
0
        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;
        }
示例#3
0
        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;
        }
示例#4
0
 public Column(ColumnDescription cd, object queryName)
     : this(new ColumnToken(cd, queryName), cd.DisplayName)
 {
 }
示例#5
0
 public ColumnToken(ColumnDescription column, object queryName)
 {
     this.column    = column ?? throw new ArgumentNullException(nameof(column));
     this.queryName = queryName ?? throw new ArgumentNullException(nameof(queryName));
 }
示例#6
0
 public _EntityColumn(ColumnDescription entityColumn, object queryName)
     : base(new ColumnToken(entityColumn, queryName), null)
 {
     if (!entityColumn.IsEntity)
         throw new ArgumentException("entityColumn");
 }
示例#7
0
 public Column(ColumnDescription cd, object queryName)
     : this(new ColumnToken(cd, queryName), cd.DisplayName)
 {
 }
示例#8
0
 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();
        }