public IQueryable GetQueryRootForResourceSet(ResourceSet resourceSet) { IQueryable queryables; string name; Tracer current = TraceHelper.Current; string str = "DataServiceQueryProvider"; string str1 = "GetQueryRootForResourceSet"; if (resourceSet == null) { name = "<null>"; } else { name = resourceSet.Name; } current.MethodCall1(str, str1, name); object[] objArray = new object[2]; objArray[0] = "resourceProperty"; objArray[1] = "DataServiceQueryProvider.GetQueryRootForResourceSet"; resourceSet.ThrowIfNull("resourceSet", new ParameterExtensions.MessageLoader(DataServiceQueryProvider.GetInputVariableToODataMethodNullMessage), objArray); try { using (OperationTracer operationTracer = new OperationTracer("GetQueryRoot")) { queryables = DSLinqQueryProvider.CreateQuery(this.dataContext.UserSchema, resourceSet.ResourceType, this.dataContext.UserContext, this.dataContext.MembershipId, this.resultSets); } } catch (Exception exception1) { Exception exception = exception1; exception.Trace(null); TraceHelper.Current.QueryGetQueryRootForResourceFailed(this.dataContext.UserContext.Name, resourceSet.Name); throw; } return(queryables); }