windows azuremobileservice入門

Download Windows azuremobileservice入門

Post on 05-Jul-2015

132 views

Category:

Documents

3 download

Embed Size (px)

TRANSCRIPT

  • 1. Windows Phone Windows Azure Mobile Services

2. Windows Azure Mobile Services Windows Azure 20MB50/API 3. Windows Azure Mobile Services 4. 1.Windows Azure 2.Mobile Service 3. 4. 5. 5. 1.Windows Azure 2.Mobile Service 3. 4. 5. 6. 1.Windows Azure Windows Azure http://www.windowsazure.com/ja-jp/ 7. 1.Windows Azure Windows Azure http://www.windowsazure.com/ja-jp/ 8. 1.Windows Azure 9. 1.Windows Azure Microsoft 10. 1.Windows Azure 11. 1.Windows Azure 2.Mobile Service 3. 4. 5. 12. Mobile Service 13. Mobile Service 14. Mobile Service 15. Mobile Service 16. Mobile Service 17. Mobile Service 18. Mobile Service 19. Mobile Service 20. Mobile Service URL .NET 21. Mobile Service 22. Mobile Service 23. Mobile Service 24. Mobile Service 25. 1.Windows Azure 2.Mobile Service 3. 4. 5. 26. Mobile Service 27. Mobile Service 28. Mobile Service C# 29. 1.Windows Azure 2.Mobile Service 3. 4. 5. 30. zip {}.slnVisualStudio 31. Windows 32. JavaScriptMobile Services DB JavaScript 33. IIS Windows Azure Azure 34. {}Service 35. OK try it outAPI 36. First itemSecond itemOK 37. DB Text 38. 1.Windows Azure 2.Mobile Service 3. 4. 5. 39. Mobile ServicesDB DB WebApiConfig.cs List todoItems = new List { new TodoItem { Id = "1", Text = "First item", Complete = false }, new TodoItem { Id = "2", Text = "Second item", Complete = false }, }; 40. sampleMobileServiceTest002Initializer : DropCreateDatabaseIfModelChanges Initializer 41. DropCreateDatabaseAlways public class sampleMobileServiceTest002Initializer : DropCreateDatabaseAlways List todoItems = new List { new TodoItem { Id = 1, Text = 1", Complete = false }, new TodoItem { Id = 2, Text = 2", Complete = false }, }; 42. DropCreateDatabaseAlways public class sampleMobileServiceTest002Initializer : DropCreateDatabaseAlways List todoItems = new List { new TodoItem { Id = 1, Text = 1", Complete = false }, new TodoItem { Id = 2, Text = 2", Complete = false }, }; 43. Service() DataObjectsTodoItem.cs public class TodoItem : EntityData { public string Text { get; set; } public bool Complete { get; set; } public string Name { get; set; } } 44. Service() App_StartWebApiConfig.cs List todoItems = new List { new TodoItem { Id = 1, Text = , Complete = false, Name = 1 }, new TodoItem { Id = 2, Text = , Complete = false, Name = 2" } }; 45. MainPage.xaml.cs public class TodoItem { public string Id { get; set; } [JsonProperty(PropertyName = "text")] public string Text { get; set; } [JsonProperty(PropertyName = "complete")] public bool Complete { get; set; } [JsonProperty(PropertyName = "name")] public string Name { get; set; } } 46. MainPage.xaml 47. 48. MainPage.xaml 49. MainPage.xaml.cs private async void Button_Click(object sender, RoutedEventArgs e) { foreach (var item in this.items) { await todoTable.DeleteAsync(item); } RefreshTodoItems(); } 50. Mobile Services ASP.NET () 51. 52. [4/17()] AZURE JapanDC( [04/19()] NUI [] Windows Phone Vol29(Azure) [5] Windows Phone Vol.30(TypeScript) 53.