ORM Delete record with by PK value

Home Forums kbmMW ORM Delete record with by PK value

Viewing 1 reply thread
  • 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.

       

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