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.
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.
Basic usage of Petapoco
https://www.wiliam.com.au/wiliam-blog/using-petapoco-with-umbraco-is-pretty-sweet
Petapoco with migration plans
https://cultiv.nl/blog/using-umbraco-migrations-to-deploy-changes/
is working on a reply...