Skip to content

Invalid id of type string for document type Xyz #3236

@TatChu

Description

@TatChu

I'm trying to use the revision approach for the concurrency problem.
This is my entity

public class public class Notification : IRevisioned
{
    public string Id { get; set; }
   // other props
    public int Version { get; set; }
}

Then when updating the document, I got this exception
Marten.Exceptions.DocumentIdTypeMismatchException: Invalid id of type string for document type Domain.Notification.
Unsure what went wrong with the above code?

Version: 7.16.0

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