I'm running the following insert
code within my azure function into an azure sql server 2014 database:
private static void Command(SqlConnection sqlConnection, string query)
{
var sqlCommand = new SqlCommand(query, sqlConnection);
try
{
sqlConnection.Open();
sqlCommand.ExecuteNonQuery();
}
finally
{
sqlConnection?.Close();
}
}
and getting the following exception:
System.Data.SqlClient is not supported on this platform
Here are the chains of dependencies it's using:
How do I run a simple sql command from my app? What am I doing wrong?