Tables with Integer Keys and the .NET Backend

A question I’ve seen asked a few times on our internal email lists “how to expose tables that have integer keys in the database through the .NET Backend?”. The key is to use AutoMapper (see Mapping between Database Types and Client Types in the .NET Backend using AutoMapper an introduction). For example, the other day…


Using Xamarin.iOS preview of Mobile Services offline

Before we start The steps below are for the Xamarin plugin for Visual Studio. If you’re using Xamarin Studio instead, you should install the nuget addin for Xamarin and most of the instructions should be the same. Using offline in Xamarin.iOS Create a new Mobile Service or use an existing one and download the Xamarin…


Offline preview support for Xamarin.iOS and Xamarin.Android

You may have seen our new preview feature for offline support for Azure Mobile Services for Windows Store and Windows Phone applications. Today, we’re happy to announce preview support for Xamarin iOS and Xamarin Android, with the nuget packages for Azure Mobile Service Managed Client SDK 1.3 and Azure Mobile Service SQLite Store 1.0. We’ve written…


Using the Xamarin.Android preview of Mobile Services offline

Before we start The steps below are for the Xamarin plugin for Visual Studio. If you’re using Xamarin Studio instead, you should install the nuget addin for Xamarin and most of the instructions should be the same. Using offline in Xamarin.Android Create a new Mobile Service or use an existing one and download the Xamarin…


Connecting to an external Database with Node.js backend in Azure Mobile Services

Azure Mobile Services has recently released the new Hybrid Connections feature that provides an easy and effective way to connect to on-premises resources from your mobile service, available for both Node.js and .NET backends. One of the scenarios enabled by Hybrid Connections is utilizing a database hosted outside of Microsoft Azure from your Mobile Service…


Fixing errors when publishing different projects to a .NET backend

Quick post today. A few people in our team (and one in the forums) have hit an issue for which the current error logging doesn’t help too much, so write about this issue here. The problem is that when you try to publish a project to a mobile service where another project had been published…


Logging with the .NET backend for Azure Mobile Services

On the node.js version of mobile services, logging was done mostly via the node’s console object. In any of the server scripts you could call console.[log|warn|error] and when that script was executed you could go to the “logs” tab in the portal to see them. In the .NET backend you still have the same capabilities,…


Autofac and Azure Mobile Services .NET Backend

When creating an Azure Mobile Service .NET backend we automatically set up Autofac to deal with all things dependency injection. If you are new to Azure Mobile Services then here are tutorials and more. If you are not familiar with Autofac then they have a great wiki with lots of information. If you are not…


Creating MongoDB-backed tables in Azure Mobile Services with .NET backend

One of the advantages of the .NET backend for Azure Mobile Services is that it has out-of-the-box support for multiple data storages, not only SQL Azure. In the node.js runtime you could bypass the SQL operations and use some other storage option (as in this post by Chris Risner for Azure Table Storage), but it’s…

7