Global Windows Azure Bootcamp : Pierre-Yves Fare Mobile Services. (sponsor Annuel du MUG-Lyon:...
Click here to load reader
-
Upload
mug-lyon-microsoft-user-group -
Category
Internet
-
view
1.675 -
download
0
Transcript of Global Windows Azure Bootcamp : Pierre-Yves Fare Mobile Services. (sponsor Annuel du MUG-Lyon:...
![Page 1: Global Windows Azure Bootcamp : Pierre-Yves Fare Mobile Services. (sponsor Annuel du MUG-Lyon: Viseo)](https://reader038.fdocuments.us/reader038/viewer/2022102322/546d3bf5af795912528b680e/html5/thumbnails/1.jpg)
Boot Camp
Présentationd’Azure Mobile Services
![Page 2: Global Windows Azure Bootcamp : Pierre-Yves Fare Mobile Services. (sponsor Annuel du MUG-Lyon: Viseo)](https://reader038.fdocuments.us/reader038/viewer/2022102322/546d3bf5af795912528b680e/html5/thumbnails/2.jpg)
Création d'une application simple de gestion
Boot Camp - Présentation « Mobile Services » - FARE Pierre-Yves
29/03/2014
• Création d'un service et d'une base de données
• Utiliser l'api Azure Mobile Services pour les accès aux bases
![Page 3: Global Windows Azure Bootcamp : Pierre-Yves Fare Mobile Services. (sponsor Annuel du MUG-Lyon: Viseo)](https://reader038.fdocuments.us/reader038/viewer/2022102322/546d3bf5af795912528b680e/html5/thumbnails/3.jpg)
Boot Camp - Présentation « Mobile Services » - FARE Pierre-Yves
29/03/2014
Prêt en quelques minutes
manage.windowsazure.com
Création du service web
![Page 4: Global Windows Azure Bootcamp : Pierre-Yves Fare Mobile Services. (sponsor Annuel du MUG-Lyon: Viseo)](https://reader038.fdocuments.us/reader038/viewer/2022102322/546d3bf5af795912528b680e/html5/thumbnails/4.jpg)
Création du service web
Boot Camp - Présentation « Mobile Services » - FARE Pierre-Yves
29/03/2014
![Page 5: Global Windows Azure Bootcamp : Pierre-Yves Fare Mobile Services. (sponsor Annuel du MUG-Lyon: Viseo)](https://reader038.fdocuments.us/reader038/viewer/2022102322/546d3bf5af795912528b680e/html5/thumbnails/5.jpg)
Création du service web
Boot Camp - Présentation « Mobile Services » - FARE Pierre-Yves
29/03/2014
ou .Net (Preview)
ou créer une nouvelle DB
![Page 6: Global Windows Azure Bootcamp : Pierre-Yves Fare Mobile Services. (sponsor Annuel du MUG-Lyon: Viseo)](https://reader038.fdocuments.us/reader038/viewer/2022102322/546d3bf5af795912528b680e/html5/thumbnails/6.jpg)
Création du service web
Boot Camp - Présentation « Mobile Services » - FARE Pierre-Yves
29/03/2014
![Page 7: Global Windows Azure Bootcamp : Pierre-Yves Fare Mobile Services. (sponsor Annuel du MUG-Lyon: Viseo)](https://reader038.fdocuments.us/reader038/viewer/2022102322/546d3bf5af795912528b680e/html5/thumbnails/7.jpg)
Boot Camp - Présentation « Mobile Services » - FARE Pierre-Yves
29/03/2014
Conception de la base de données
![Page 8: Global Windows Azure Bootcamp : Pierre-Yves Fare Mobile Services. (sponsor Annuel du MUG-Lyon: Viseo)](https://reader038.fdocuments.us/reader038/viewer/2022102322/546d3bf5af795912528b680e/html5/thumbnails/8.jpg)
Boot Camp - Présentation « Mobile Services » - FARE Pierre-Yves
29/03/2014
Présentation de l’API
Microsoft.WindowsAzure.MobileServices (namespace){• MobileServiceClient : accès au service mobile
• IMobileTable<T> : accès à une table}
Client .Net :
Nuget (console) :PM> Install-Package WindowsAzure.MobileServices
![Page 9: Global Windows Azure Bootcamp : Pierre-Yves Fare Mobile Services. (sponsor Annuel du MUG-Lyon: Viseo)](https://reader038.fdocuments.us/reader038/viewer/2022102322/546d3bf5af795912528b680e/html5/thumbnails/9.jpg)
Boot Camp - Présentation « Mobile Services » - FARE Pierre-Yves
29/03/2014
Utilisation de l’API
• Récupérer une référence sur la table Worker :
IMobileServiceTable<Worker> workerTable = client.GetTable<Worker>();
• Récupérer une référence vers le service :
MobileServiceClient client = new MobileServiceClient(’’service url’’, ‘’app key’’);
• Récupérer les workers :
List<Worker> productiveWorkers = await workerTable.Where(worker => worker.productivity > 3).ToListAsync();
![Page 10: Global Windows Azure Bootcamp : Pierre-Yves Fare Mobile Services. (sponsor Annuel du MUG-Lyon: Viseo)](https://reader038.fdocuments.us/reader038/viewer/2022102322/546d3bf5af795912528b680e/html5/thumbnails/10.jpg)
Boot Camp - Présentation « Mobile Services » - FARE Pierre-Yves
29/03/2014
Utilisation de l’API
• Récupérer une référence sur la table Worker :
IMobileServiceTable<Worker> workerTable = client.GetTable<Worker>();
• Récupérer une référence vers le service :
MobileServiceClient client = new MobileServiceClient(’’service url’’, ‘’app key’’);
• Récupérer les workers :
List<Worker> productiveWorkers = await workerTable.Where(worker => worker.productivity > 3).ToListAsync();