Reputation: 397
I have implemented an Azure Mobile App backend, and I have written an ApiController class. I can now successfully make requests to it and all is working fine. However, I want to store some data in a database at some point. If my class inherited from TableController, I knew how to do is because all the basic actions are defined there, however I cannot seem to find a valid way on how to store data to the database from an ApiController inherited class ? Can anyone help ?
Thanks
T
Upvotes: 0
Views: 142
Reputation: 8035
If you have a C#.NET Azure Mobile App backend, then it is generally set up with Entity Framework. You can hook up your WebAPI to the same Entity Framework DbContext that the Mobile Apps section is using.
Upvotes: 1