• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2014, Vol. 36 ›› Issue (9): 1829-1834.

• 论文 • Previous Articles     Next Articles

Research of Windows Phone data access technology         

LIU Lizhi1,2,CHEN Chuanbo3   

  1. (1.Hubei Province Key Laboratory of Intelligent Robot,Wuhan Institute of Technology,Wuhan 430205;
    2.School of Computer Science and Engineering,Wuhan Institute of Technology,Wuhan 430205;
    3.School of Software Engineering,Huazhong University of Science and Technology,Wuhan 430074,China)
  • Received:2012-11-06 Revised:2013-04-24 Online:2014-09-25 Published:2014-09-25

Abstract:

The problem of how smart device can efficiently access data stored in relational data base must be solved in the era of mobile Internet. Windows Phone provides a solution. Firstly, an entity data model is constructed based on a corresponding relational database by using ORM technology. Secondly, the object context of the entity data model is encapsulated by a REST WCF Data Service, which is deployed by Windows Azure. Finally, data is queried and handled according to the specification of open data protocol. These technologies are discussed and an example is given by combining MVVM pattern, which proves the solution is feasible. Because smart device can access and manipulate WCF Data Service deployed in Windows Azure through Open Data Protocol and return results by XML, the Windows Phone data access pattern can be extend to other smart device platforms with different operating systems such as Android and IOS.

Key words: Windows Phone;WCF data service;representational state transfer(REST);open data protocol;MVVM(Model-View-View Model) pattern