-
Notifications
You must be signed in to change notification settings - Fork 475
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
Implement FromODataUriAttribute & ODataQueryParameterBindingAttribute. #1152
Conversation
f8f6cc5
to
787a57d
Compare
{ | ||
Contract.Assert(parameterType != null); | ||
|
||
Contract.Assert(parameterType != null); |
There was a problem hiding this comment.
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); | ||
|
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
787a57d
to
c8c8f31
Compare
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)
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