How to implement Azure MobileAppController C#

99封情书 提交于 2019-12-13 21:17:41

问题


I have 2 TableController for 2 my tables. Also I need another controller, which process data from tables.

Azure's documentation says I should declare ApiController following way:

[MobileAppController]
public class CustomController : ApiController
{
      //...
}

But I don't realize how to get any data from tables to process it. I tried to create new instance of Table's Controller, but it doesn't work such way. Any solutions?


回答1:


To manage the tables within your custom API, just use regular entity framework code. You can find a tutorial here: http://www.entityframeworktutorial.net/entityframework6/introduction.aspx



来源:https://stackoverflow.com/questions/37181543/how-to-implement-azure-mobileappcontroller-c-sharp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!