Skip to content

Add option to specify columns that should not be updated #57

Open
@kubinko

Description

KORM now allows to specify which columns should be updated by Edit. It would be nice to have an option to set which columns should not be updated by Edit.

For example:
I have a class with a property that is managed separately from other class properties. I want to map this property to a database column (so NoMap is not an option for me), but I do not want to change value of this column in most of the updates, because the property value might not be assigned (yet), and therefore the Edit would assign an empty value to corresponding database column (effectively erasing the value).

I propose to add method EditExcept, that would act as Edit with a slight difference, that it would take as parameters a param array of column names, that should not be updated.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions