Copied to clipboard

Flag this post as spam?

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


  • ThomasBrunbjerg 90 posts 182 karma points
    Sep 04, 2017 @ 12:32
    ThomasBrunbjerg
    0

    Using PetaPoco for creating new rows in custom table

    I'm new to both Umbraco and PetaPoco and have not been able to find much documentation on how to set up PetaPoco for database access. What I need is just one custom table that I need to be able to insert values into.

    I'm used to working with Entity Framework, so I am not sure how to approach this. What I need is the equivalent of the CRUD views generated by EF, though I only need the view for Creating new records.

    I am aware that I can use an API controller for this, but how would I make this work with my Umbraco templates?

    Links to any guides on using PetaPoco would be appreciated as well.

  • Laurent Lequenne 123 posts 248 karma points
    Sep 04, 2017 @ 13:19
Please Sign in or register to post replies

Write your reply to:

Draft