Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Arul Pushpam Murugan 16 posts 108 karma points
    Jul 21, 2020 @ 08:29
    Arul Pushpam Murugan
    0

    Umbraco Bulk insert/update

    Hai Umbraco Genious, I'm Working in Umbraco 7.15.2 version and creating a new package for my development.i have created a new database table. now I want to perform bulk insert and bulk update function. currently, I am using dapper for doing this.but my question is do we have any possible way to achieve this using Umbraco inbuilt functions without using another ORM like dapper?

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Jul 21, 2020 @ 09:26
    Ismail Mayat
    0

    Umbraco under the hood uses petapoco, you can get access to it and use that instead see for working example https://www.wiliam.com.au/wiliam-blog/using-petapoco-with-umbraco-is-pretty-sweet if you want crud for this custom table with a nice ui in umbraco back office i highly recommend package fluidity https://our.umbraco.com/packages/backoffice-extensions/fluidity/

  • Arul Pushpam Murugan 16 posts 108 karma points
    Jul 21, 2020 @ 11:07
    Arul Pushpam Murugan
    0

    Thank you for your response Ismail Mayat. I am looking for bulk insert and bulk update helper methods. As per my knowledge, there is no way to achieve this using PetaPoco.

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Jul 21, 2020 @ 11:19
    Ismail Mayat
    0

    Ah yes you are right, you could try sqlbulk copy https://www.c-sharpcorner.com/UploadFile/sourabh_mishra1/sqlbulkcopy-in-C-Sharp/ google you may find better examples of using it.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies