Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OData60 context url Fixes #948

Open
wants to merge 5 commits into
base: OData60
Choose a base branch
from

Conversation

mikepizzo
Copy link
Member

Issues

This pull request fixes issue #917.

Description

Passes Operation Path down to ODL so that it can correctly generate a ContextUrl.
Relies on PR776 from OData.net (OData/odata.net#776)

Checklist (Uncheck if it is not completed)

  • [ x ] Test cases added
  • [ x ] Build and test with one-click build and test script passed

Additional work necessary

No Docs Needed.
*Commented test code validates appending key lookup to function invocation which is apparently not supported in WebAPI OData today.

@mikepizzo mikepizzo changed the title O data60 context url OData60 context url Fixes Mar 21, 2017
#endregion FunctionImports


private IQueryable<Appointment> getAppointments()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GetAppointments() is better. :)

return Ok(getAppointments());
}

//[HttpGet]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the comment cases.


[HttpGet]
[ODataRoute("Businesses({BusinessId})/Default.boundNavPath()")]
public IHttpActionResult boundNavPath([FromODataUri]int BusinessId)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lower case for parameter

}

//[HttpGet]
//[EnableQuery]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove comment cases or add the comments

using Nuwa;
using Microsoft.OData.Edm;
using System.ComponentModel.DataAnnotations;
using System.Runtime.CompilerServices;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sort

@xuzhg
Copy link
Member

xuzhg commented Oct 19, 2017

@mikepizzo any update for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants