Your SlideShare is downloading. ×

Azure Mobile Services .NET Backend

289

Published on

Technical session on at Kerela Microsoft Users Group (K-MUG), on 26th July, 2014

Technical session on at Kerela Microsoft Users Group (K-MUG), on 26th July, 2014

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
289
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. https://github.com/shijuvar
  • 2. • http://weblogs.asp.net/shijuvarghese
  • 3. Action HTTP Verb URL Suffix Create POST /TodoItem Get All GET /TodoItem Get GET /TodoItem/id Update PATCH /TodoItem/id Delete DELETE /TodoItem/id http://{service}.azure-mobile.net/tables/{table-name}/
  • 4. using Microsoft.WindowsAzure.MobileServices; MobileServiceClient MobileService = new MobileServiceClient("https://{mobile_service_name}.azure- mobile.net/", “{application_key}“);
  • 5. WindowsAzure.MobileServices.Backend.Mongo public class Order : DocumentData { public DateTime OrderDate { get; set; } public string Client { get; set; } }
  • 6. protected override async void Initialize(HttpControllerContext controllerContext) { base.Initialize(controllerContext); string connectionStringName = "MongoConnectionString"; string databaseName = "<YOUR-DATABASE-NAME>"; string collectionName = "todoItems"; InitializeConnectionString(connectionStringName); DomainManager = new MongoDomainManager<TodoItem>(connectionStringName, databaseName, collectionName, Request, Services); }
  • 7. http://azure.microsoft.com/ http://azure.microsoft.com/mobile

×