How do I interact with SQL in a Windows Store App

前端 未结 3 1459
离开以前
离开以前 2021-01-21 06:55

I\'ve been asked to begin developing a Windows Store version of our company\'s LOB web application. What\'s the best way to go about interacting with out data store?

My

3条回答
  •  梦谈多话
    2021-01-21 07:26

    You can accomplish it with C# or JavaScript and you'd do it pretty much the same way, via services. Windows Store (C#/VB) applications don't have the same capabilities as desktop apps do to access databases via interfaces like ODBC, JDBC, SQL Native Client, etc., so you won't be connecting your Win RT app with SQL, you'll be connecting it via a hosted service that itself directly accesses the database.

    Depending on how your LOB web application is partitioned, you may be able to expose existing functionality as a service layer and then invoke those services from your Windows Store app via HTTP requests. The HttpClient sample should help and depending on the service implementation you can also use WCF client capabilities in Windows Store apps.

提交回复
热议问题