ORM Delete record with by PK value

Home Forums kbmMW ORM Delete record with by PK value

This topic contains 1 reply, has 2 voices, and was last updated by  kimbomadsen 3 months ago.

  • Author
    Posts
  • #53903

    mrluigi2017
    Participant

    Hi,

    I couldn’t found any examples in the demo about this. Do you always need the object to do a delete with ORM or is there a way to do it with just the primary key (or other parameters)?

    I am looking for something like this:

    ORM .Delete<TPerson>([145]);

    Thanks in advance!

  • #53907

    kimbomadsen
    Keymaster

    Hi,

    The ORM already have ORM.Delete<TPerson>([145]) which deletes according to the defined primary key, and ORM.Delete<TPerson>([‘fld2′,’fld3’],[10,20]) which deletes according to specific fields.

     

You must be logged in to reply to this topic.