Skip to content

Wrong mapping when using long Id #48

@manuel-ornato

Description

@manuel-ornato

Hi,

Great lib overall, thanks for sharing your work.

I have a mapping issue when using long Ids.

Here is a short console app sample that reproduces the problem: longIdsIssue.cs.

I create 4 dynamic Expandos with distincts long Ids. There is a child table Id (int) too.
As you see all Ids (parents and children) are distincts, so in the end we should have 4 distinct instances of the parent class, each one being linked to a distinct instance of the child class.

Instead, the mapping results in only 2 instances of the parent class, one containing 3 children and the other containing the last child.

The problem goes away if I change Ids to int.

Manuel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions