ORM exclude fields from updating

Home Forums kbmMW ORM exclude fields from updating

Viewing 1 reply thread
  • Author
    Posts
    • #54206
      mrluigi2017
      Participant

      Hi,

      How do you exclude certain fields from updating when using the ORM? Will setting the modified flag to false will do the trick?

      p.s. All my objects are defined as kbmmwNullable.

       

      Thanks in advance!

       

      Luigi

    • #54214
      kimbomadsen
      Keymaster

      Hi,

      It will always operate the data atomic. Hence all non virtual fields that is defined for a record/object that is managed by kbmMW will be included.

      You can derive another subclass of your object in which you define the fields you do not particularly want to update as virtual fields.

      [kbmMW_VirtualField(…)]
      property YourField_not_to_expose_in_updates;

      If you want to make specific detailed changes, you would have to use SQL UPDATE statements (preferably using kbmMW’s SQL syntax as it will work against all supported databases).

      best regards

      Kim/C4D

Viewing 1 reply thread
  • You must be logged in to reply to this topic.
Skip to toolbar