Search code examples
sql-serverazurexamarin.formsvisual-studio-app-center

Connect Xamarin forms with Azure SQL database


I am very new to Xamarin forms and I am trying to create an app that will connect to my existing Azure SQL database. I was trying to follow the tutorial on here: https://learn.microsoft.com/en-us/previous-versions/azure/app-service-mobile/app-service-mobile-xamarin-android-get-started but when it gets to download the backend, the link gives me error 404. After some more reading I found out that this method is no longer used but instead connecting it through the Visual Studio App center. So I pop on that and added all the statements from there in my code but I can't see any way of connecting this to Azure. Also, I've create the web service on Azure, where I linked my Azure SQL database. So the question now is how do I actually connect the two? I couldn't find any documentation on this so any help will be greatly appreciated!


Solution

  • As, you mentioned you already created web service to access your Azure SQL, Now you may be need to know how to access web service from Xamrin forms.

    If yes, kindly follow below link for same

    Here are the few references: Consuming asmx services in Xamarin and here.