Xamarin.Forms connect to SQL Server

How can I connect Xamarin.Forms cross-platform to SQL Server? This just hangs and does not connect to SQL Server and does not show any sign of connection. I have added System.Data.SqlClient as a reference. My code looks something like this : using System; using System.Collections.Generic; using System.ComponentModel; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks;…

Details