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

Implement FromODataUriAttribute & ODataQueryParameterBindingAttribute. #1152

Merged
merged 1 commit into from
Dec 12, 2017

Conversation

robward-ms
Copy link
Contributor

@robward-ms robward-ms commented Dec 6, 2017

Issues

This pull request makes progress on issues #975, #939, #772, #628, #229,
This pull request fixes issues #1142, #1149, #1153

Description

Implement NonValidatingParameterBindingAttribute.
Implement ODataNullValueMessageHandler as a IResultFilter.
Implement ODataQueryParameterBindingAttribute.
Fixed $count calculation in ODataFeature.TotalCount.
Fixed an ETag is where the etag handler was not being retrieved from the per-route service container.
Refactor EnableQueryAttribute to move model retrieval to ActionDescriptorExtensions.

Checklist (Uncheck if it is not completed)

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

Additional work necessary

Refactor Batching and Formatting for AspNetCore.
Port Unit Tests to NetCore & Xunit 2.0
Port E2E Tests to NetCore & Xunit 2.0

@robward-ms robward-ms force-pushed the NetCore-1142-1149 branch 2 times, most recently from f8f6cc5 to 787a57d Compare December 6, 2017 23:19
{
Contract.Assert(parameterType != null);

Contract.Assert(parameterType != null);
Copy link
Contributor

Choose a reason for hiding this comment

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

Dup assert

if (entityClrType == null)
{
entityClrType = GetEntityClrTypeFromActionReturnType(actionDescriptor);

Copy link
Contributor

Choose a reason for hiding this comment

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

Empty line. Not sure if stylecop catches this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It should, let me look into that...

@@ -23,6 +23,10 @@ namespace Microsoft.AspNet.OData.Formatter
/// <summary>
/// Provides a <see cref="IModelBinder"/> for EDM primitive types.
/// </summary>
/// <remarks>
/// This class is similar to ODataModelBinder in AspNetCore. The flow is similar but the
Copy link
Contributor

Choose a reason for hiding this comment

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

File located in AspNet project, you write AspNetCore

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct., my intention is to cross-link the files since a fix would likely need to make it into both files.

/// A model binder for ODataParameterValue values.
/// </summary>
/// <remarks>
/// This class is similar to ODataModelBinderProvider in AspNet. The flow is similar but the
Copy link
Contributor

Choose a reason for hiding this comment

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

File located in AspNetCore project, you write AspNet

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct., my intention is to cross-link the files since a fix would likely need to make it into both files.

Implement NonValidatingParameterBindingAttribute.
Implement ODataNullValueMessageHandler as a IResultFilter.
Implement ODataQueryParameterBindingAttribute.
Fixed $count calculation in ODataFeature.TotalCount.
Fixed an ETag is where the etag handler was not being retrieved from the per-route service container.
Refactor EnableQueryAttribute to move model retrieval to ActionDescriptorExtensions.
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.

3 participants