Example #1
0
        public DataColumnMetadata(string name, DType type, DataTableMetadata tableMetadata)
        {
            Contracts.AssertValue(name);
            Contracts.AssertValid(type);
            Contracts.AssertValue(tableMetadata);

            Name = name;
            Type = type;
            ParentTableMetadata = tableMetadata;
            IsSearchable        = false;
            IsSearchRequired    = false;
            IsExpandEntity      = true;
        }
Example #2
0
        public DataColumnMetadata(ColumnMetadata columnMetadata, DataTableMetadata tableMetadata)
        {
            Contracts.AssertValue(columnMetadata);
            Contracts.AssertValue(tableMetadata);

            _columnMetadata     = columnMetadata;
            ParentTableMetadata = tableMetadata;
            IsSearchable        = _columnMetadata.LookupMetadata.HasValue && _columnMetadata.LookupMetadata.Value.IsSearchable;
            IsSearchRequired    = _columnMetadata.LookupMetadata.HasValue && _columnMetadata.LookupMetadata.Value.IsSearchRequired;
            Type           = columnMetadata.Type;
            Name           = columnMetadata.Name;
            IsExpandEntity = false;
        }