【发布时间】:2015-07-11 11:25:30
【问题描述】:
Azure 不包含从头开始设置 .NET 移动后端的文档。我一直看到的只是这个“TodoItem”示例,这非常令人沮丧。
我正在尝试将其连接到现有的 Azure SQL DB
我试图从中检索数据的表是“UserTable”
这是我的模型的样子:
public class UserTable : EntityData
{
public int id { get; set; }
public string Email { get; set; }
public string UserFName { get; set; }
public string UserLName { get; set; }
}
现在,当我从 VS2013 创建新的移动支持项目时,如何为我的场景创建一个新的后端,而不是它自动加载的所有这些 TodoItem 项目?网络上没有任何文档。非常感谢!
编辑:
根据我的 iOS 开发人员 He 的说法,JSON 响应格式如下:
[{
status:true,
message: "Successfully Logged in",
values:{
email: user@sample.com,
password: samplepassword,
accesstoken: 7h234b7b2j
}
}]
因此,因此当用户登录时,还需要将访问令牌添加到响应中。
【问题讨论】:
标签: .net azure mobile azure-sql-database azure-mobile-services