azureasp.net-coremsdnazure-table-storagemicrosoft-documentation

Microsoft Poor Documentation on Azure: Table​Operation.​Merge Method


I am a newbie in Azure so I read the Microsoft Table​Operation.​Merge Method.

Creates a new table operation that merges the contents of the given entity with the existing entity in a table.

That is all... Now, what should I understand from the "merge" concept? How exactly this Merge happens.

Say I have

Body {PK: b, RK: 1, LeftHand: null, RightHand: 1000, LeftLeg: ll} >
Body {PK: b, RK: 1, LeftHand: 9999, RightHand: null, Head: h}

How can I guess ?


Solution

  • Merge operation actually creates a superset. To put it simply:

    So in your example:

    Old Entity:

    {PK: b, RK: 1, LeftHand: null, RightHand: 1000, LeftLeg: ll}
    

    New Entity:

    {PK: b, RK: 1, LeftHand: 9999, RightHand: null, Head: h}
    

    Entity After Merge Operation:

    {PK: b, RK: 1, LeftHand: 9999, RightHand: 1000, LeftLeg: 11, Head: h}