Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > Windows Azure > Windows Azure (Mobile Services) and Windows Store App > ตอนที่ 1 : การสร้าง Azure Mobile Services เพื่อใช้งานร่วมกับ Windows Store App



Clound SSD Virtual Server

ตอนที่ 1 : การสร้าง Azure Mobile Services เพื่อใช้งานร่วมกับ Windows Store App

ตอนที่ 1 : การสร้าง Azure Mobile Services เพื่อใช้งานร่วมกับ Windows Store App เนื่องจากการใช้งาน Application บน Windows Store App จะเน้นไปทางด้านข้อมูลที่เป็น Online และ จำเป็นต้องอ่านและเขียนข้อมูลกับเซิฟเวอร์ ซึ่งถ้าเราจะทำการติดตั้ง Server เอง ก็จะต้องใช้งบประมาณค่อนข้างสูง ฉะนั้นทางเลือกในการเขียน Application แบบ Online สามารถเลือกใช้บริการ Services จากผู้ให้บริการ Cloud Services ที่รองรับ Database แบบ Online ที่สามารถทำงานร่วมกับ Application ประเภท Mobile ได้ และในบทความนี้ จะได้แนะนำการเลือกใช้ Mobile Services ของ Windows Azure ซึ่งมีบริการจัดเก็บข้อมูลแบบ Online ทำงานร่วมกับ Mobile Application สามารถรังรับข้อมูลขนาดใหญ่ ได้ไม่จำกัด และยังสามารถทำ Push Notification ไปยัง Smart Phone ต่าง ๆ เช่น Android , Windows Phone และ iOS

Windows Store Apps : สอน Windows Store Apps การเขียนโปรแกรมบน Windows 8 App


และการใช้งาน Azure Mobile Services นั้นจะต้องบอกว่ามีความสะดวกค่อนข้างมาก เพราะได้มีการออกแบบ API และ Library ที่สามารถทำงานร่วมกับ Windows Store App ได้ในทันที มีตัวอย่างโปรเจค และ บทความตัวอย่างการใช้งานค่อนข้างหลากหลาบ

เริ่มต้นการสร้าง Mobile Services กับ Windows Store App

Azure Mobile Services Windows Store App

ในหน้าจอบน Portal Management ของ Windows Azure ให้เลือก Service ของ Mobile Services เราสามารถคลิกที่ Create a new Mobile Service ได้ในทันที

Azure Mobile Services Windows Store App

เลือก COMPUTE -> MOBILE SERVICE -> CREATE

Azure Mobile Services Windows Store App

บริการ Mobile Services จะต้องมีการกำหนด URL ซึ่งจะอยู่ภายใต้ Subdomain ของ azure-mobile.net และเลือก Create a new SQL database instance

Azure Mobile Services Windows Store App

กำหนดชื่อ Database รวมทั้งเลือก New SQL database server พร้อมกับกำหนด Username และ Password ในการ Login








Azure Mobile Services Windows Store App

จากนั้นเราจะได้ Mobile Services ขึ้นมา 1 รายการ ให้คลิกเข้าไปในหน้าหลัก

Azure Mobile Services Windows Store App

ในหน้าหลักให้เราเลือก Platform เป็นของ Windows Store และเลือก CREATE A NEW WINDOWS PHONE APP

Azure Mobile Services Windows Store App

ให้คลิกที่ Step 2 และ Step 3 เพื่อดาวน์โหลดไฟล์ (ส่วน Step 1 เราได้ติดตั้งในบทความก่อนหน้านี้ เรียบร้อยแล้ว)

Azure Mobile Services Windows Store App

หลังจากเราได้ โปรเจคตัวอย่างของ Windows Store ให้เราเปิดด้วย Visual Studio 2012

(Project ตัวอย่างจะมีการ Assign ค่าพวก URL และ API Keys ของเราให้อัตโนมัติ)

Azure Mobile Services Windows Store App

เป็นโครงสร้างของ Project โดยไฟล์แรกของ App จะอยู่ที่ MainPage.xaml

Azure Mobile Services Windows Store App

ทำการ Build ตัว Project ซะ 1 รอบ

Azure Mobile Services Windows Store App

จากนั้นก็เลือกรันผ่าน Simulator

Azure Mobile Services Windows Store App

หน้าจอหลักของโปรแกรม Windows Store App ที่รันผ่าน Simulator

Azure Mobile Services Windows Store App

ทดสอบการ Insert ข้อมูล

Azure Mobile Services Windows Store App

ข้อมูลถูกเพิ่ม และแสดงในฝั่งขวา

Azure Mobile Services Windows Store App

เมื่อกลับไปดูที่ Mobile Services ของ Windows Azure

Azure Mobile Services Windows Store App

รายการข้อมูลก็จะถูกเพิ่มเข้ามาในตาราง Table ที่เราได้สร้างไว้

สำหรับตัวอย่างนี้จะเป็นการดาวน์โหลด Project ที่เป็น Sample Project แต่ถ้าเราต้องการที่จะสร้าง Project ของเราเอง หรือมี Project อยู่แล้วก็สามารถที่จะทำการ Add Library เข้ามาใน Project ของเราได้เช่นเดียวกัน สามารถหาได้จากบทความถัดไป








   
Share


ช่วยกันสนับสนุนรักษาเว็บไซต์ความรู้แห่งนี้ไว้ด้วยการสนับสนุน Source Code 2.0 ของทีมงานไทยครีเอท


ลองใช้ค้นหาข้อมูล


   


Bookmark.   
       
  By : ThaiCreate.Com Team (บทความเป็นลิขสิทธิ์ของเว็บไทยครีเอทห้ามนำเผยแพร่ ณ เว็บไซต์อื่น ๆ)
  Score Rating :  
  Create/Update Date : 2013-08-26 06:12:43 / 2017-03-24 12:49:49
  Download : Download  ตอนที่ 1 : การสร้าง Azure Mobile Services เพื่อใช้งานร่วมกับ Windows Store App
 Sponsored Links / Related

 
ตอนที่ 2 : การปรับแต่ง Windows Store App เพื่อทำงานร่วมกับ Azure Mobile Services
Rating :

 
ตอนที่ 3 : การบันทึกข้อมูลจาก Windows Store App ลงใน Azure Mobile Services
Rating :

 
ตอนที่ 4 : การนำข้อมูลจาก Azure Mobile Services มาแสดงบน Windows Store App
Rating :

 
ตอนที่ 5 : Windows Store App : Register Form (Azure Mobile Services)
Rating :

 
ตอนที่ 6 : Windows Store App : Login User Password (Azure Mobile Services)
Rating :

 
ตอนที่ 7 : Windows Store App : Update Data (Azure Mobile Services)
Rating :

 
ตอนที่ 8 : Windows Store App : Delete Data (Azure Mobile Services)
Rating :


ThaiCreate.Com Forum


Comunity Forum Free Web Script
Jobs Freelance Free Uploads
Free Web Hosting Free Tools

สอน PHP ผ่าน Youtube ฟรี
สอน Android การเขียนโปรแกรม Android
สอน Windows Phone การเขียนโปรแกรม Windows Phone 7 และ 8
สอน iOS การเขียนโปรแกรม iPhone, iPad
สอน Java การเขียนโปรแกรม ภาษา Java
สอน Java GUI การเขียนโปรแกรม ภาษา Java GUI
สอน JSP การเขียนโปรแกรม ภาษา Java
สอน jQuery การเขียนโปรแกรม ภาษา jQuery
สอน .Net การเขียนโปรแกรม ภาษา .Net
Free Tutorial
สอน Google Maps Api
สอน Windows Service
สอน Entity Framework
สอน Android
สอน Java เขียน Java
Java GUI Swing
สอน JSP (Web App)
iOS (iPhone,iPad)
Windows Phone
Windows Azure
Windows Store
Laravel Framework
Yii PHP Framework
สอน jQuery
สอน jQuery กับ Ajax
สอน PHP OOP (Vdo)
Ajax Tutorials
SQL Tutorials
สอน SQL (Part 2)
JavaScript Tutorial
Javascript Tips
VBScript Tutorial
VBScript Validation
Microsoft Access
MySQL Tutorials
-- Stored Procedure
MariaDB Database
SQL Server Tutorial
SQL Server 2005
SQL Server 2008
SQL Server 2012
-- Stored Procedure
Oracle Database
-- Stored Procedure
SVN (Subversion)
แนวทางการทำ SEO
ปรับแต่งเว็บให้โหลดเร็ว


Hit Link
   







Load balance : Server 04
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่