Skip to content

Updates cause all properties of an entity to be marked as modified #188

@christianacca

Description

@christianacca

When an EntityInfo whose state is modified is processed by EFPersistenceManager.HandleModified all properties in the corresponding EF Core EntityEntry is marked as being modified.

The exact line that causes this is in MarkEntryAndOwnedChildren:

entry.State = state;

I'm not entirely sure this is a bug or by design? It seems unintentional given the comment here:

image

There was an old related issue but @jtraband closed that one but wasn't sure why?

I wonder if this behaviour can be changed such that not all properties are modified? Or maybe a configuration option to allow this behaviour?

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