public virtual global::Microsoft.OData.Client.DataServiceActionQuerySingle <global::System.Nullable <int> > Foo7()
        {
            global::Microsoft.OData.Client.EntityDescriptor resource = Context.EntityTracker.TryGetEntityDescriptor(this);
            if (resource == null)
            {
                throw new global::System.Exception("cannot find entity");
            }

            return(new global::Microsoft.OData.Client.DataServiceActionQuerySingle <global::System.Nullable <int> >(this.Context, resource.EditLink.OriginalString.Trim('/') + "/namespace.foo.foo7"));
        }
Exemple #2
0
        /// <summary>
        /// There are no comments for @as in the schema.
        /// </summary>
        public global::Microsoft.OData.Client.DataServiceActionQuerySingle <global::Namespace1.@event> @as()
        {
            global::Microsoft.OData.Client.EntityDescriptor resource = Context.EntityTracker.TryGetEntityDescriptor(this);
            if (resource == null)
            {
                throw new global::System.Exception("cannot find entity");
            }

            return(new global::Microsoft.OData.Client.DataServiceActionQuerySingle <global::Namespace1.@event>(this.Context, resource.EditLink.OriginalString.Trim('/') + "/Namespace1.as"));
        }
Exemple #3
0
        /// <summary>
        /// There are no comments for ActionWithParameter in the schema.
        /// </summary>
        public new global::Microsoft.OData.Client.DataServiceActionQuerySingle <global::OverrideOperations.DSC.ET> ActionWithParameter(string p1)
        {
            global::Microsoft.OData.Client.EntityDescriptor resource = Context.EntityTracker.TryGetEntityDescriptor(this);
            if (resource == null)
            {
                throw new global::System.Exception("cannot find entity");
            }

            return(new global::Microsoft.OData.Client.DataServiceActionQuerySingle <global::OverrideOperations.DSC.ET>(this.Context, resource.EditLink.OriginalString.Trim('/') + "/OverrideOperations.DSC.ActionWithParameter", new global::Microsoft.OData.Client.BodyOperationParameter("p1", p1)));
        }
Exemple #4
0
        /// <summary>
        /// There are no comments for Activate in the schema.
        /// </summary>
        public virtual global::Microsoft.OData.Client.DataServiceActionQuery Activate()
        {
            global::Microsoft.OData.Client.EntityDescriptor resource = Context.EntityTracker.TryGetEntityDescriptor(this);
            if (resource == null)
            {
                throw new global::System.Exception("cannot find entity");
            }

            return(new global::Microsoft.OData.Client.DataServiceActionQuery(this.Context, resource.EditLink.OriginalString.Trim('/') + "/Microsoft.Dynamics.DataEntities.Activate"));
        }
        /// <summary>
        /// There are no comments for complete in the schema.
        /// </summary>
        public virtual global::Microsoft.OData.Client.DataServiceActionQuery complete(string _comment)
        {
            global::Microsoft.OData.Client.EntityDescriptor resource = Context.EntityTracker.TryGetEntityDescriptor(this);
            if (resource == null)
            {
                throw new global::System.Exception("cannot find entity");
            }

            return(new global::Microsoft.OData.Client.DataServiceActionQuery(this.Context, resource.EditLink.OriginalString.Trim('/') + "/Microsoft.Dynamics.DataEntities.complete", new global::Microsoft.OData.Client.BodyOperationParameter("_comment", _comment)));
        }
        public global::Microsoft.OData.Client.DataServiceActionQuery ResetDataSource()
        {
            global::Microsoft.OData.Client.EntityDescriptor resource = Context.EntityTracker.TryGetEntityDescriptor(this);
            if (resource == null)
            {
                throw new global::System.Exception("cannot find entity");
            }

            return(new global::Microsoft.OData.Client.DataServiceActionQuery(this.Context, resource.EditLink.OriginalString.Trim('/') + "/ODataSingletonSample.ResetDataSource"));
        }
Exemple #7
0
        public virtual global::Microsoft.OData.Client.DataServiceActionQuerySingle <global::Namespace1.Product> UpdateProductName(string lastName)
        {
            global::Microsoft.OData.Client.EntityDescriptor resource = Context.EntityTracker.TryGetEntityDescriptor(this);
            if (resource == null)
            {
                throw new global::System.Exception("cannot find entity");
            }

            return(new global::Microsoft.OData.Client.DataServiceActionQuerySingle <global::Namespace1.Product>(this.Context, resource.EditLink.OriginalString.Trim('/') + "/Namespace1.UpdateProductName", new global::Microsoft.OData.Client.BodyOperationParameter("lastName", lastName)));
        }
Exemple #8
0
        /// <summary>
        /// There are no comments for Rate in the schema.
        /// </summary>
        public global::Microsoft.OData.Client.DataServiceActionQuery Rate(int Rating)
        {
            global::Microsoft.OData.Client.EntityDescriptor resource = Context.EntityTracker.TryGetEntityDescriptor(this);
            if (resource == null)
            {
                throw new global::System.Exception("cannot find entity");
            }

            return(new global::Microsoft.OData.Client.DataServiceActionQuery(this.Context, resource.EditLink.OriginalString.Trim('/') + "/ProductService.Rate", new global::Microsoft.OData.Client.BodyOperationParameter("Rating", Rating)));
        }
Exemple #9
0
        /// <summary>
        /// There are no comments for Return in the schema.
        /// </summary>
        public global::Microsoft.OData.Client.DataServiceActionQuerySingle <global::ODataVerificationService.Models.Movie> Return()
        {
            global::Microsoft.OData.Client.EntityDescriptor resource = Context.EntityTracker.TryGetEntityDescriptor(this);
            if (resource == null)
            {
                throw new global::System.Exception("cannot find entity");
            }

            return(new global::Microsoft.OData.Client.DataServiceActionQuerySingle <global::ODataVerificationService.Models.Movie>(this.Context, resource.EditLink.OriginalString.Trim('/') + "/ODataVerificationService.Models.Return"));
        }
Exemple #10
0
        /// <summary>
        /// There are no comments for ResetDataSource in the schema.
        /// </summary>
        public void ResetDataSource()
        {
            global::Microsoft.OData.Client.EntityDescriptor resource = Context.EntityTracker.TryGetEntityDescriptor(this);
            if (resource == null)
            {
                throw new System.Exception("cannot find entity");
            }

            global::System.Uri requestUri = new global::System.Uri(resource.EditLink.OriginalString.Trim('/') + "/WebStack.QA.Test.OData.Singleton.ResetDataSource");
            Context.Execute(requestUri, "POST",
                            new global::Microsoft.OData.Client.OperationParameter[] {  });
        }
Exemple #11
0
        /// <summary>
        /// There are no comments for GetPartnersCount in the schema.
        /// </summary>
        public int GetPartnersCount()
        {
            global::Microsoft.OData.Client.EntityDescriptor resource = Context.EntityTracker.TryGetEntityDescriptor(this);
            if (resource == null)
            {
                throw new System.Exception("cannot find entity");
            }

            global::System.Uri requestUri = new global::System.Uri(resource.Identity.OriginalString.Trim('/') + "/WebStack.QA.Test.OData.Singleton.GetPartnersCount");
            return(global::System.Linq.Enumerable.Single(Context.Execute <int>(requestUri, "GET", true,
                                                                               new global::Microsoft.OData.Client.OperationParameter[] {  })));
        }
        /// <summary>
        /// There are no comments for GetAddressFunction in the schema.
        /// </summary>
        public global::WebStack.QA.Test.OData.OpenComplexType.Typed.Client.Address GetAddressFunction()
        {
            global::Microsoft.OData.Client.EntityDescriptor resource = Context.EntityTracker.TryGetEntityDescriptor(this);
            if (resource == null)
            {
                throw new System.Exception("cannot find entity");
            }

            global::System.Uri requestUri = new global::System.Uri(resource.Identity.OriginalString.Trim('/') + "/WebStack.QA.Test.OData.OpenComplexType.GetAddressFunction");
            return(global::System.Linq.Enumerable.Single(Context.Execute <global::WebStack.QA.Test.OData.OpenComplexType.Typed.Client.Address>(requestUri, "GET", true,
                                                                                                                                               new global::Microsoft.OData.Client.OperationParameter[] { })));
        }