public static global::Microsoft.OData.Client.DataServiceQuerySingle <string> Foo7(this global::Microsoft.OData.Client.DataServiceQuerySingle <global::namespacePrefix.Namespace.Foo.TestType> source, global::namespacePrefix.Namespace.Foo.Color p1, global::namespacePrefix.Namespace.Foo.Complex p2) { if (!source.IsComposable) { throw new global::System.NotSupportedException("The previous function is not composable."); } return(source.CreateFunctionQuerySingle <string>("namespace.foo.foo7", false, new global::Microsoft.OData.Client.UriOperationParameter("p1", p1), new global::Microsoft.OData.Client.UriOperationParameter("p2", p2))); }
public virtual global::Microsoft.OData.Client.DataServiceActionQuery Foo9(global::System.Nullable <global::namespacePrefix.Namespace.Foo.Color> p1, global::namespacePrefix.Namespace.Foo.Complex p2) { return(new global::Microsoft.OData.Client.DataServiceActionQuery(this, this.BaseUri.OriginalString.Trim('/') + "/foo9", new global::Microsoft.OData.Client.BodyOperationParameter("p1", p1), new global::Microsoft.OData.Client.BodyOperationParameter("p2", p2))); }
public global::Microsoft.OData.Client.DataServiceQuerySingle <string> Foo7(global::namespacePrefix.Namespace.Foo.Color p1, global::namespacePrefix.Namespace.Foo.Complex p2) { global::System.Uri requestUri; Context.TryGetUri(this, out requestUri); return(this.Context.CreateFunctionQuerySingle <string>(string.Join("/", global::System.Linq.Enumerable.Select(global::System.Linq.Enumerable.Skip(requestUri.Segments, this.Context.BaseUri.Segments.Length), s => s.Trim('/'))), "namespace.foo.foo7", false, new global::Microsoft.OData.Client.UriOperationParameter("p1", p1), new global::Microsoft.OData.Client.UriOperationParameter("p2", p2))); }