azure-mobile-services

When an entity has more than one 0..1:n relationships to another entity, how to define them using Fluent API?

风流意气都作罢 提交于 2019-12-23 19:08:40
问题 I'm working on an Azure Mobile Service and in my model I have an entity Message , which is related to itself following this statement: A Message may have a parent Message , a Message may be the parent to many Messages . My class got defined as follows: public partial class Message { public Message() { this.Messages = new HashSet<Message>(); } public int Id { get; set; } public int CreatedById { get; set; } public int RecipientId { get; set; } public int ParentId { get; set; } public string

How can i integrate Azure Mobile App win Azure API app

拥有回忆 提交于 2019-12-23 17:24:23
问题 We are building a mobile cross platform solution with Xamarin (Xamarin.Forms). We developed a backend API in Azure with Azure API Apps. Now we want to integrate and use Mobile Apps (Mobile Services) but using Azure API Apps we created previously. I see this BUILD presentation https://channel9.msdn.com/Events/Build/2014/3-623 and the idea i think is to use ApiController and call to Azure API Apps there. Is this correct? Some sample? How can i do? I must have 2 projects API Apps + Mobile Apps?

Azure Mobile Service error: more than one static class with name was found as bootstrapper in assemblies

隐身守侯 提交于 2019-12-23 12:16:59
问题 The following error was reported in Azure logs after deploying a new version of C# MobileService project from Visual Studio 2013: More than one static class with name 'WebApiConfig' was found as bootstrapper in assemblies: {{My.MobileService.Project, myMobileService}}. Please provide only one class or use the 'IBootstrapper' attribute to define a unique bootstrapper. If, in fact, there are multiple versions of mentioned class file, how do I clean it before deploying the new version? 回答1: This

Azure MobileServicePushFailedException on Android

点点圈 提交于 2019-12-23 08:45:54
问题 I am trying to build an Application with offline sync and followed the tutorial on Azure Now the offline storage works well, but no items are added to on the server with the following exception: Error syncAsync com.microsoft.windowsazure.mobileservices.table.sync.push.MobileServicePushFailedException java.util.concurrent.ExecutionException: com.microsoft.windowsazure.mobileservices.table.sync.push.MobileServicePushFailedException at com.google.common.util.concurrent.AbstractFuture$Sync

(Not Found) Error in Azure Mobile Services .NET Backend

假装没事ソ 提交于 2019-12-23 06:07:51
问题 Been stuck with that error till madness phases ... Please help I have created an Azure Mobile Service .NET backend, and am now trying to call its Post function from a Xamarin Android client I initialize and call the Insert async function (these are just snippets from my code) private static IMobileServiceTable<Todo> _todoMobileServiceTable; public static bool? InitializeAms() { try { CurrentPlatform.Init(); _mobileServiceClient = new MobileServiceClient(applicationUrl, applicationKey);

Image files sync in Azure Mobile Apps for Android

狂风中的少年 提交于 2019-12-23 05:46:09
问题 Sorry if this question does not contain any code. I am building an Android app using Azure Mobile Apps. I am successfully following the sample with the TodoList . The sample describes the case for data sync, but what if I want to add support for images sync? Do I have to save the image files as blob inside the database? Do I treat files as any other record in the db, or is there a better way? Do I have to use a service other than "Mobile Apps"? I've also read the following instructions about

How did I messed up my azure mobile app server?????? ZUMO BOOK Sample

女生的网名这么多〃 提交于 2019-12-23 05:01:42
问题 I'm following Adrian Hall ZUMO BOOK at git hub and trying to recreate all samples shown by him in his book actually i'm in chapter 4 at server side code, I was trying to do uploading file section of the book. but suddenly when i used postman to check on my server it stopped being able to authenticate my read requests or write, it just shows me an error code 500 Internal Server Error. so whenever I tried to SyncofflineCache my program throw an exception, but I cant seem to figure out what is

Azure Mobile App using existing database

早过忘川 提交于 2019-12-23 04:57:12
问题 I'm at my first attempt in using Azure Mobile App, and I should connect it to an existing and already populated SQL Azure DB. As far as I understand, one must add to the tables the Version , CreatedAt , UpdatedAt , and Deleted columns, and most important there must be and id column set as identity. The problem is that on some tables I already have an identity column (eg. ItemID ), wich I cannot rename without breaking existing third party applications that connects to the data. The question

Query other tables in insert function of Azure Table Storage

痞子三分冷 提交于 2019-12-23 04:49:19
问题 I am using Azure Table Storage to send out Push Notifications once a new item is inserted. Currently I am trying to query a second table to retrieve a string which I want to use for push notifications. I am quite new to Node.js so I worked through some code and tried the following to start a query on the TestTable to find the correct entity with based on TestProperty. Once I have found the correct entity I want to use a specific property from it to work on with. This is the error I get with

mClient.invokeApi wrong constructor in Azure-mobile-services android SDK and is not compiling

試著忘記壹切 提交于 2019-12-23 04:33:48
问题 Here is the snippet from documentation azure ListenableFuture<MarkAllResult> result = mClient.invokeApi( "completeAll2", MarkAllResult.class ); Futures.addCallback(result, new FutureCallback<MarkAllResult>() { @Override public void onFailure(Throwable exc) { createAndShowDialog((Exception) exc, "Error"); } @Override public void onSuccess(MarkAllResult result) { createAndShowDialog(result.getCount() + " item(s) marked as complete.", "Completed Items"); refreshItemsFromTable(); } }); } This