/// <summary>Initializes a new <see cref="ExpandSegment"/> instance.</summary> /// <param name="name">Segment name.</param> /// <param name="filter">Filter expression for segment, possibly null.</param> /// <param name="maxResultsExpected"> /// Expand providers may choose to return at most MaxResultsExpected + 1 elements to allow the /// data service to detect a failure to meet this constraint. /// </param> /// <param name="container">Container to which the segment belongs; possibly null.</param> /// <param name="expandedProperty">Property expanded by this expand segment</param> /// <param name="orderingInfo">Collection of ordering information for this segment, used for paging</param> internal ExpandSegment( string name, Expression filter, int maxResultsExpected, ResourceSetWrapper container, ResourceProperty expandedProperty, OrderingInfo orderingInfo) { WebUtil.CheckArgumentNull(name, "name"); CheckFilterType(filter); this.name = name; this.filter = filter; this.container = container; this.maxResultsExpected = maxResultsExpected; this.expandedProperty = expandedProperty; this.orderingInfo = orderingInfo; }
public IgnorePropertiesAttribute(string propertyName) { WebUtil.CheckArgumentNull <string>(propertyName, "propertyName"); this.propertyNames = new ReadOnlyCollection <string>(new List <string>(new string[] { propertyName })); }
public QueryInterceptorAttribute(string entitySetName) { this.entitySetName = WebUtil.CheckArgumentNull <string>(entitySetName, "entitySetName"); }
public static bool PathHasFilter(IEnumerable <ExpandSegment> path) { WebUtil.CheckArgumentNull <IEnumerable <ExpandSegment> >(path, "path"); return(path.Any <ExpandSegment>(segment => segment.HasFilter)); }