How to connect to SQL server database from a Windows 10 UWP app

前端 未结 4 1448
闹比i
闹比i 2020-11-27 05:57

I\'m trying to connect to an on-prem MS SQL database from a universal windows app. I\'m making a LOB app using UWP, to support desktop, tablet and mobile use. When trying to

4条回答
  •  攒了一身酷
    2020-11-27 06:24

    I am having to go down this same road as well... Looking forward to SQLServer being directly accessible via EF Core directly.

    I have watched both tutorials above and since I'm new to developing, it only wet my appetite. I did however find this detailed Video Tutorial on YouTube that walks you thru;

    • creating the WebService
    • creating duplicated POGO classes in WebService and your UWP App
    • creating Web API 2.0 Entity Framework Controllers for each Table you want to create
    • Adding Newtonsoft.JSON and Microsoft.Net.HTTP via NuGet to your UWP App
    • and finally making calls from UWP back to Local SQL Server via Web Service / JSON calls in Code Behind.

    Despite this Video NOT being in English, I was able to watch what he was doing then pause and duplicate.

提交回复
热议问题