Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Is it possible to use Konstruct with a custom / service api?
I'm adding an integration to Fresh Desk onto my site, so it's a very simple api which in a lot of ways is similar to a basic database table structure.
Would it be possible to consume this service with Konstruct in place of the database?
Yes you can. Take a look at repositories documentation here https://docs.getkonstrukt.net/advanced/repositories
Top level you can implement your own repository and tell Konstrukt to use that instead and so this way you can work with any data source, not just the database.
Hope this helps
Perfect, just what I needed!
One more question Matt... This ticket system uses long for the ids and not int...
Is it possible to change the repository to use long?
Yup, you'll want to change the type of the second generic argument passed to the KonstruktRepository<TEntity, TId> base class to long.
public class TicketRepository : KonstruktRepository<Ticket, long>
// Base class implementation here
That was easy 👍
I aim to please 😁
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted