• Like
Azure Mobile Services .NET Backend
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

Azure Mobile Services .NET Backend

  • 242 views
Published

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
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
242
On SlideShare
0
From Embeds
0
Number of Embeds
3

Actions

Shares
Downloads
10
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