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 32 commits into
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>); |
* 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) |
|
@Sreejithpin please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement ( “Agreement” ) is agreed to by the party signing below ( “You” ), 1. Definitions. “Code” means the computer software code, whether in human-readable or machine-executable form, “Project” means any of the projects owned or managed by .NET Foundation and offered under a license “Submit” is the act of uploading, submitting, transmitting, or distributing code or other content to any “Submission” means the Code and any other copyrightable material Submitted by You, including any 2. Your Submission. You must agree to the terms of this Agreement before making a Submission to any 3. Originality of Work. You represent that each of Your Submissions is entirely Your 4. Your Employer. References to “employer” in this Agreement include Your employer or anyone else 5. Licenses. a. Copyright License. You grant .NET Foundation, and those who receive the Submission directly b. Patent License. You grant .NET Foundation, and those who receive the Submission directly or c. Other Rights Reserved. Each party reserves all rights not expressly granted in this Agreement. 6. Representations and Warranties. You represent that You are legally entitled to grant the above 7. Notice to .NET Foundation. You agree to notify .NET Foundation in writing of any facts or 8. Information about Submissions. You agree that contributions to Projects and information about 9. Governing Law/Jurisdiction. This Agreement is governed by the laws of the State of Washington, and 10. Entire Agreement/Assignment. This Agreement is the entire agreement between the parties, and .NET Foundation dedicates this Contribution License Agreement to the public domain according to the Creative Commons CC0 1. |
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.