Skip to content

Merge on Unique Key (not Primary Key) #73

@guillaume-fr

Description

@guillaume-fr

For synchronisation purpose sometimes we add a GUID column with an unique constraint but keep an autoinc int PKEY for regular work (avoiding fragmentation, unreadable keys,...).
If we could specify the column(s) on which the equality should be done during merge that would be great.

Context.UpdateGraph(document, map => map.OwnedCollection(d => d.Lines, withKey : line => line.UniqueId));

Without it, GraphDiff removes and re-adds the lines instead of updating them.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions