PR For Bulk Operation and ODataBind Review for Beta Release#2524
PR For Bulk Operation and ODataBind Review for Beta Release#2524Sreejithpin wants to merge 48 commits intomasterfrom
Conversation
* Bulk operations6 (#2) * BulkInsert1 draft * Bulk insert changes * deleted old test * updates * Update ODataResourceSetWrapper.cs * updates * Updated addressing comments * updates * updates updates * Updates * Updates * Minor updates * comments * updates * update publicapi for core * Address comments * Cleanup and additional tests Cleanup and additional tests * Updated code * BulkInsert1 draft * Bulk insert changes * deleted old test * updates * updates * Updated addressing comments * updates * updates updates * Updates * Updates * Minor updates * updates * Address comments * Cleanup and additional tests Cleanup and additional tests * DataAnnotationException updates * comments * small updates * updates * small update * updates * Updates * Update DeltaSetOfT.cs * Updates with Patch * updates * updates * Update WebHostTestFixture.cs * updates * Update DeltaOfTStructuralType.cs * Updates * Updates for serializer etc * Update WebHostTestFixture.cs * updates * updates * updates * Bulk Operations Updates * Review comments addressed * Updates * updated for deltaentity * Update Microsoft.AspNet.OData.Test.csproj * Update Microsoft.AspNet.OData.PublicApi.bsl * update public api * test fix * Update EdmStructuredObject.cs * Update EdmStructuredObject.cs * Update BulkInsertTest.cs * update * public api * review comments * Review comments updates * smalll update * updates * updates * updates
* support for odata.bind * support for odata.bind
2561d7c to
6ff81ed
Compare
| } | ||
| else if (ODataRequestMethod.Patch == controllerContext.Request.Method) | ||
| { | ||
| // e.g. Try PatchCustomer first, then fall back to Patch action name |
| using Org.OData.Core.V1; | ||
| using System; | ||
| using System.Collections.Generic; | ||
| using System.Text; |
| /// Helper class for OData Serialization | ||
| /// </summary> | ||
| [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1053:StaticHolderTypesShouldNotHaveConstructors")] | ||
| public class ODataSerializerHelper |
There was a problem hiding this comment.
| /// Gets the wrapped <see cref="ODataResource"/>. | ||
| /// Gets the wrapped <see cref="ODataResource"/>. This will return null for deleted resources. | ||
| /// </summary> | ||
| [Obsolete("Please use ResourceBase instead")] |
There was a problem hiding this comment.
The idea was to make it obselete but not to remove, right @mikepizzo . but I guess in 8.0 its removed right?
There was a problem hiding this comment.
In 8.0 the Resource property should be typed as ODataResourceBase.
| /// <summary> | ||
| /// Handler Class to handle users methods for create, delete and update | ||
| /// </summary> | ||
| public abstract class EdmPatchMethodHandler |
| /// </summary> | ||
| NotFound | ||
| } | ||
|
|
There was a problem hiding this comment.
This should be in a separate file #Resolved
| /// <summary> | ||
| /// Base Interface for PatchMethodHandler | ||
| /// </summary> | ||
| public interface IPatchMethodHandler |
|
|
||
| namespace Microsoft.AspNet.OData | ||
| { | ||
| internal class DefaultPatchHandler<TStructuralType> : PatchMethodHandler<TStructuralType> where TStructuralType :class |
| { | ||
|
|
||
| /// <summary> | ||
| /// Handler Class to handle users methods for create, delete and update |
| } | ||
|
|
||
| /// <summary> | ||
| /// Handler Class to handle users methods for create, delete and update |
| namespace Microsoft.AspNet.OData | ||
| { | ||
| /// <summary> | ||
| /// Basic interface to reperesent a deltaset which is a collection of Deltas. |
| /// <returns>DeltaSet response</returns> | ||
| public DeltaSet<TStructuralType> Patch(IPatchMethodHandler patchHandler) | ||
| { | ||
| return CopyChangedValues(patchHandler as PatchMethodHandler<TStructuralType>); |
* Add [EnableNestedPaths] attribute that transforms result query based on path * Add NestedPathsRoutingConvention for .netcore * Make it possible to access action descriptor from action map * Fix bug in WebApiActionDescriptor.GetCustomAttributes() * Add tests for NestedPathsRoutingConvention * Add routing tests * Add tests for ODataPathQueryBuilder * Fix tests * Fix build errors is AspNet * Minor cleanup * Fix build error * Reuse existing ExpressionHelpers methods in ODataPathQueryBuilder * Minor code cleanup based on review comments * Remove var keyword * Fix some failing tests * Fix failing tests * Better support single results when [EnableQuery] is set and better support for EF Core * Add e2e tests * Add EF e2e tests * Refactoring * Update core 3.x public API * Minor refactors * Fix build errors in aspnet * Fix aspnet classic tests * Update projitems * Fix failing tests * Refactoring * Address PR comments and refactor * Conditionally-compile code only supported in net core * Minor clean up
Bumps System.Text.RegularExpressions from 4.3.0 to 4.3.1. --- updated-dependencies: - dependency-name: System.Text.RegularExpressions dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps System.Text.RegularExpressions from 4.3.0 to 4.3.1. --- updated-dependencies: - dependency-name: System.Text.RegularExpressions dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: John Gathogo <jogathogo@microsoft.com>
* Bulk operations6 (#2) * BulkInsert1 draft * Bulk insert changes * deleted old test * updates * Update ODataResourceSetWrapper.cs * updates * Updated addressing comments * updates * updates updates * Updates * Updates * Minor updates * comments * updates * update publicapi for core * Address comments * Cleanup and additional tests Cleanup and additional tests * Updated code * BulkInsert1 draft * Bulk insert changes * deleted old test * updates * updates * Updated addressing comments * updates * updates updates * Updates * Updates * Minor updates * updates * Address comments * Cleanup and additional tests Cleanup and additional tests * DataAnnotationException updates * comments * small updates * updates * small update * updates * Updates * Update DeltaSetOfT.cs * Updates with Patch * updates * updates * Update WebHostTestFixture.cs * updates * Update DeltaOfTStructuralType.cs * Updates * Updates for serializer etc * Update WebHostTestFixture.cs * updates * updates * updates * Bulk Operations Updates * Review comments addressed * Updates * updated for deltaentity * Update Microsoft.AspNet.OData.Test.csproj * Update Microsoft.AspNet.OData.PublicApi.bsl * update public api * test fix * Update EdmStructuredObject.cs * Update EdmStructuredObject.cs * Update BulkInsertTest.cs * update * public api * review comments * Review comments updates * smalll update * updates * updates * updates
* support for odata.bind * support for odata.bind
…nto BulkOps_Odatabind
|
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
Issues
PR For Bulk Operation and ODataBind Review for Beta Release
This pull request fixes issue #xxx.
Description
Briefly describe the changes of this pull request.
Checklist (Uncheck if it is not completed)
Additional work necessary
If documentation update is needed, please add "Docs Needed" label to the issue and provide details about the required document change in the issue.