Skip to content

异步保存消息导致异常 #73

@FuYan

Description

@FuYan

WriteMessageLog

_ = DbContext.SaveChangesAsync()

await DbContext.SaveChangesAsync()

The instance of entity type 'MessageLog' cannot be tracked because another instance with the same key value for {'LogId'} is already being tracked. When attaching existing entities, ensure that only one entity instance with a given key value is attached. Consider using 'DbContextOptionsBuilder.EnableSensitiveDataLogging' to see the conflicting key values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions