Welcome!

SOA & WOA Authors: Pat Romanski, Gary Kaiser, Elizabeth White, Patrick Carey, Greg Akers

Related Topics: Cloud Expo, Wireless, SOA & WOA, .NET, Silverlight, Apache

Cloud Expo: Article

Windows Azure Mobile Services

Windows Azure Mobile Services is the bomb, but how can we work with enum values?

I’ve been doing a lot of work with Windows Azure Mobile Services (WAMS).  It’s a brilliant technology that allows you to stand up powerful OData compliant services to support your Windows 8 Store Apps, Windows Phone 8 Apps, and even iOS apps in just a few minutes.  It’s hard to oversell the sheer awesomeness of this stuff.

I’m currently working on a bunch of code that will shortly become a sample project highlighting both WAMS and Windows 8 Apps (look for a project called “FamilyPig” coming soon).  In the process of building that, I ran into a couple of questions – one of which I’ll cover here, and give some guidance to people who might be running into a similar question.

One of the cool features that makes WAMS super easy to work with is the concept of “dynamic schema”.  In a nutshell, that means that if you have an existing table, and you throw a Plain Old CLR Object (POCO) at it using the InsertAsync method (of the IMobileServiceTable interface), WAMS is smart enough to look at the object coming in, and make sure that it has all the columns that it needs in the underlying Windows Azure SQL Database table to store the record (assuming that “dynamic schema” is enabled on the mobile service).  If the column does exist, it gets created on the fly.  Very, very cool.  Note, what’s actually happening under the covers is that your POCO object is being converted to a JSON object for transmission over the wire, and WAMS is pulling apart that JSON object to look at the columns.

More Stories By Adam Hoffman

Adam is an technical evangelist working for Microsoft. By day, you can likely find him somewhere in the Midwest, driving to somewhere, ready to figure out how the cloud can save your family from certain doom, and make you rich and successful in the process. Before he started evangelizing, Adam was a Senior Developer Lead for Microsoft in Redmond, working on Office 365, BPOS, and Office Live. He misses Redmond, and the excitement of the mother ship, but the call of bitter cold and lots of snow in Chicago was too much for him, and he had to return.

Prior that that he developed software and ran teams for Thomson Reuters, Method Engine (which he co-founded), VSA Partners, Navigant Consulting, Andersen Consulting, and a couple of CASE tool companies way back in the day. His favorite possession is a clone of the original Altair computer, running BillG's 8K BASIC, which he's still intending to hook up to the cloud, someday, somehow.

You can read his Windows Azure Blog at http://stratospher.es, and tweeter-er him at http://twitter.com/stratospher_es.

Additionally, if you'd like to keep track of his cloud connected car, you can follow it on Twitter at http://twitter.com/cloudcar1.