/// <summary> /// Returns a string like "select=small,medium" that can be used in an expand parameter value /// </summary> /// <returns></returns> public override IEnumerable<ODataOption> ToOptions() { List<ODataOption> options = new List<ODataOption>(); SelectOData thumbnailSelect = null; if (SelectThumbnailNames != null && SelectThumbnailNames.Length > 0) { thumbnailSelect = new SelectOData { FieldNames = SelectThumbnailNames }; options.Add(thumbnailSelect); } return options; }
/// <summary> /// Returns a string like "select=small,medium" that can be used in an expand parameter value /// </summary> /// <returns></returns> public override IEnumerable <ODataOption> ToOptions() { List <ODataOption> options = new List <ODataOption>(); SelectOData thumbnailSelect = null; if (SelectThumbnailNames != null && SelectThumbnailNames.Length > 0) { thumbnailSelect = new SelectOData { FieldNames = SelectThumbnailNames }; options.Add(thumbnailSelect); } return(options); }
/// <summary> /// Returns a string like "select=small,medium" that can be used in an expand parameter value /// </summary> /// <returns></returns> public override IEnumerable<ODataOption> ToOptions() { List<ODataOption> options = new List<ODataOption>(); SelectOData thumbnailSelect = null; if (SelectThumbnailNames != null && SelectThumbnailNames.Length > 0) thumbnailSelect = new SelectOData { FieldNames = SelectThumbnailNames }; options.Add(new ExpandOData { PropertyToExpand = ApiConstants.ThumbnailsRelationshipName, Select = thumbnailSelect }); return EmptyCollection; }
/// <summary> /// Returns a string like "select=small,medium" that can be used in an expand parameter value /// </summary> /// <returns></returns> public override IEnumerable <ODataOption> ToOptions() { List <ODataOption> options = new List <ODataOption>(); SelectOData thumbnailSelect = null; if (SelectThumbnailNames != null && SelectThumbnailNames.Length > 0) { thumbnailSelect = new SelectOData { FieldNames = SelectThumbnailNames } } ; options.Add(new ExpandOData { PropertyToExpand = ApiConstants.ThumbnailsRelationshipName, Select = thumbnailSelect }); return(EmptyCollection); } }