Skip to content

AutoAssign primary key #403

@Yaraslaut

Description

@Yaraslaut

If structure has AutoAssign primary key the following code does not produce expected result

entity entry{ .pk = 10, .message = "hello"};
dm.Create(entrty);
// entry.pk is not 10

the work around is following

entity entry{ .message = "hello"};
entry.pk = 10; // This will mark it as modified
dm.Create(entrty);
// entry.pk is 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions