How do I interact with SQL in a Windows Store App

前端 未结 3 1432
离开以前
离开以前 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:09

    If you want local database you can use SQLite but I'm guesing that you want external Db

    One of my apps is connecting via web with DB. The DB is in Azure. I connect them by simple .net webapi. So my Windows Store App is getting data via webapi from Azure db via HttpClient. It's easy to do. 3 lines of code. I'm sending data as a JSON serialized string sa they take minimum space. It's a good way but you need to remember that when you want to use big objects etc you need to think about caching results, checking the cache, cleaning it etc.

提交回复
热议问题