private CustomAttributeType MapCustomAttributeType(CustomAttributeTypes sourceAttributeType)
        {
            switch (sourceAttributeType)
            {
            case CustomAttributeTypes.All:
                return(CustomAttributeType.String);

            case CustomAttributeTypes.None:
                return(CustomAttributeType.String);

            case CustomAttributeTypes.Numeric:
                return(CustomAttributeType.Numeric);

            case CustomAttributeTypes.String:
                return(CustomAttributeType.String);

            case CustomAttributeTypes.Selection:
                return(CustomAttributeType.Selection);

            case CustomAttributeTypes.DateTime:
                return(CustomAttributeType.DateTime);

            case CustomAttributeTypes.FirstClassProperty:
                return(CustomAttributeType.FirstClassProperty);
            }
            return(CustomAttributeType.String);
        }
 public CustomAttributesDetailQuery(string orderBy, ExtendableTypeNames extendableTypeName, CustomAttributeTypes customAttributeType, bool?isSearchable, int pageNumber, int pageSize) : this()
 {
     OrderBy             = orderBy;
     ExtendableTypeName  = extendableTypeName;
     CustomAttributeType = customAttributeType;
     IsSearchable        = isSearchable;
     PageNumber          = pageNumber;
     PageSize            = pageSize;
 }