Beispiel #1
0
        /// <summary>
        /// There are no comments for FunctionWithoutParameter in the schema.
        /// </summary>
        public static global::Microsoft.OData.Client.DataServiceQuerySingle <global::OverrideOperations.DSC.CT> FunctionWithoutParameter(this global::Microsoft.OData.Client.DataServiceQuerySingle <global::OverrideOperations.DSC.DerivedET> source)
        {
            if (!source.IsComposable)
            {
                throw new global::System.NotSupportedException("The previous function is not composable.");
            }

            return(source.CreateFunctionQuerySingle <global::OverrideOperations.DSC.CT>("OverrideOperations.DSC.FunctionWithoutParameter", false));
        }
Beispiel #2
0
        /// <summary>
        /// There are no comments for @const in the schema.
        /// </summary>
        public static global::Namespace1.eventSingle @const(this global::Microsoft.OData.Client.DataServiceQuerySingle <global::Namespace1.@event> source)
        {
            if (!source.IsComposable)
            {
                throw new global::System.NotSupportedException("The previous function is not composable.");
            }

            return(new global::Namespace1.eventSingle(source.CreateFunctionQuerySingle <global::Namespace1.@event>("Namespace1.const", false)));
        }
Beispiel #3
0
        /// <summary>
        /// There are no comments for KdvHesapla in the schema.
        /// </summary>
        public static global::Microsoft.OData.Client.DataServiceQuerySingle <double> KdvHesapla(this global::Microsoft.OData.Client.DataServiceQuerySingle <global::UdemyAPIOData.API.Models.Product> source, double kdv)
        {
            if (!source.IsComposable)
            {
                throw new global::System.NotSupportedException("The previous function is not composable.");
            }

            return(source.CreateFunctionQuerySingle <double>("Default.KdvHesapla", false, new global::Microsoft.OData.Client.UriOperationParameter("kdv", kdv)));
        }
        public static global::Microsoft.OData.Client.DataServiceQuerySingle <int> GetEmployeesCount(this global::Microsoft.OData.Client.DataServiceQuerySingle <global::ODataSingletonSample.Fx.Client.Company> source)
        {
            if (!source.IsComposable)
            {
                throw new global::System.NotSupportedException("The previous function is not composable.");
            }

            return(source.CreateFunctionQuerySingle <int>("ODataSingletonSample.GetEmployeesCount", false));
        }
Beispiel #5
0
        /// <summary>
        /// There are no comments for GetProductTax in the schema.
        /// </summary>
        public static global::Microsoft.OData.Client.DataServiceQuerySingle <global::System.Nullable <double> > GetProductTax(this global::Microsoft.OData.Client.DataServiceQuerySingle <global::Namespace1.Product> _source, double taxRate)
        {
            if (!_source.IsComposable)
            {
                throw new global::System.NotSupportedException("The previous function is not composable.");
            }

            return(_source.CreateFunctionQuerySingle <global::System.Nullable <double> >("Namespace1.GetProductTax", false, new global::Microsoft.OData.Client.UriOperationParameter("taxRate", taxRate)));
        }
Beispiel #6
0
        /// <summary>
        /// There are no comments for IsWithinBudget in the schema.
        /// </summary>
        public static global::Microsoft.OData.Client.DataServiceQuerySingle <bool> IsWithinBudget(this global::Microsoft.OData.Client.DataServiceQuerySingle <global::ProductService.Models.Product> source, int budget)
        {
            if (!source.IsComposable)
            {
                throw new global::System.NotSupportedException("The previous function is not composable.");
            }

            return(source.CreateFunctionQuerySingle <bool>("Default.IsWithinBudget", false, new global::Microsoft.OData.Client.UriOperationParameter("budget", budget)));
        }
Beispiel #7
0
        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 static global::SelfHostODataClientApp.SelfHostServer.Models.CustomerSingle RefreshCustomer2(this global::Microsoft.OData.Client.DataServiceQuerySingle <global::SelfHostODataClientApp.SelfHostServer.Models.Customer> source)
        {
            if (!source.IsComposable)
            {
                throw new global::System.NotSupportedException("The previous function is not composable.");
            }

            return(new global::SelfHostODataClientApp.SelfHostServer.Models.CustomerSingle(source.CreateFunctionQuerySingle <global::SelfHostODataClientApp.SelfHostServer.Models.Customer>("Default.RefreshCustomer2", true)));
        }