azure-mobile-services

What is the TableController class for and where are its methods used?

孤人 提交于 2019-12-12 04:33:21
问题 I've been starting out with Azure and have chosen to set up a Mobile Service using .NET in VS. I've been learning about the constituents of the Azure Todo get-started server project. One thing I'm struggling to understand (even with extensive Googling) is what the TableController methods are for? I understand that TableController exposes the table to HTTP requests? But when I access data from my client I'm using ".LookupAsync" or ".UpdateAsync" methods on the Table returned by my

Count number of strings returned from Azure query

守給你的承諾、 提交于 2019-12-12 04:26:13
问题 I am trying to count the number of rows from my azure database table in my android java code. Unfortunately there is no count() method built into the azure library. The closest thing to it is the includeInlineCount() method. I used the following line of code: final MobileServiceList<Crime> result = mToDoTable.includeInlineCount().execute().get(); Which returns the value of the first column for each row. The value of result looks something like this: [column1_row1_String, column1_row2_String,

MobileServiceTableOperationError When Adding New Field

 ̄綄美尐妖づ 提交于 2019-12-12 04:25:20
问题 I have an Azure Mobile Services project that is based off of the offline to do list example: http://azure.microsoft.com/en-us/documentation/articles/mobile-services-windows-store-dotnet-get-started-offline-data/ The example application with offline data is working as expected. The problem is when I want to modify the ToDoItem with a new field. If I modify the ToDoItem class with a new field (both the Windows app TodoItem class and the AzureMobileService app TodoItem class) with the following:

using Azure Mobile App for Google authentication

≯℡__Kan透↙ 提交于 2019-12-12 04:08:26
问题 I follow this tutorial for Google authentication for my web application. I specified the following in my Google Developers Console: Authorized JavaScript origins = my Azure mobile app url Authorized redirect URIs = my web app url + /.auth/login/google/callback But in this case I get the following error: That’s an error. Error: redirect_uri_mismatch The redirect URI in the request: mobile app url + .auth/login/google/callback did not match a registered redirect URI. If I use url of my mobile

Swagger authentication in Azure App Service

核能气质少年 提交于 2019-12-12 04:07:54
问题 In my Azure Mobile .NET backend I want to use Azure Mobile .NET Server Swagger . I'm looking for fast way to hide swagger UI from public access ? Is there any way to provide access only for selected users ? 回答1: First a disclaimer: Even if you protect your Swagger UI from public consumption, you are not protecting your APIs from public consumption. You have to assume that everyone knows all of your routes and have the appropriate security in place to protect any requests that may come in.

Is the token in MobileServiceClient.CurrentUser after LoginAsync and token of MobileServiceUser returned by LoginAsync are the same?

守給你的承諾、 提交于 2019-12-12 03:55:49
问题 In this guide, a MobileUser is set after calling MobileServiceClient.LoginAsync. I'm thinking that the MobileUser returned by MobileServiceClient.LoginAsync is the same as the MobileServiceClient.CurrentUser after logging in via LoginAsync. I printed out both the tokens they contain by calling the MobileServiceAuthenticationToken property (i.e. MobileUser.MobileServiceAuthenticationToken and MobileService.CurrentUser.MobileServiceAuthenticationToken). The two tokens seem to be the same. The

Data Binding list to listbox C# XAML (Azure mobile services) UWP

允我心安 提交于 2019-12-12 03:49:02
问题 So I have an online database. And I want the query results to be displayed in a listbox. I tried to use data binding but I think I'm doing it totally wrong. Files [![enter image description here][1]][1] Table class ProductTable { public string id { get; set; } public string Name { get; set; } public string Title { get; set; } public string Description { get; set; } public double Price { get; set; } public string Type { get; set; } public string Seller { get; set; } public int Expiration { get

new site on azure-mobile.net

雨燕双飞 提交于 2019-12-12 03:37:36
问题 Is it now possible to create new site on azure-mobile.net domain in Azure? I cannot now create new Mobile Service in Azure Portal (classic), I received the error: Mobile Service is no longer accepting new subscriptions. Please use Azure Mobile Apps instead. But when I try to create Mobile App or App Service, I can create site only in .azurewebsites.net domain. 回答1: You can't create new Mobile Service as the service is being deprecated. Mobile App is part of App Service that include Web App,

Azure mobile service invokeApi not working from cordova project

独自空忆成欢 提交于 2019-12-12 03:23:40
问题 I'm using Azure Mobile Services(AzMS) in VisualStudio JS-Apache Cordova project where I call a AzMS's custom API to insert user data in storage. This very same code I have previously used in a VS web app javascript and there it is working fine. However here in the cordova project, I get an "unexpected connection failure" error when calling invokeApi. When I try from VS web app, it works fine, which means the custom API service code is good. Here is my js client code: azmsClient.login

Azure Mobile Apps - An item to insert was not provided

为君一笑 提交于 2019-12-12 03:21:17
问题 I am trying to create a new table on my nodeJS custom Azure Mobile App backend. The table is called readings.js : var azureMobileApps = require("azure-mobile-apps"); var table = azureMobileApps.table(); table.columns = { "text": "string", "complete": "boolean" }; module.exports = table; app.js : var express = require("express"); var azureMobileApps = require("azure-mobile-apps"); var app = express(); var mobileApp = azureMobileApps({ homePage: true, swagger: true }); mobileApp.tables.import("