- Home /
Question by
MagicQuest · Jun 23, 2020 at 08:12 PM ·
sql
Visual Studio shows no errors but Unity says other wise
So im trying to use Sql with my Unity game and for some reason when i try doing
using System.Data.SqlClient;
public void SaveData() {
using (SqlConnection sqlConn = new SqlConnection(ConnectionString))
{
sqlConn.Open();
Console.WriteLine(sqlConn.State.ToString());
}
}
in my code visual studio says its fine but unity will tell me
The type or namespace name "SqlClient" does not exist in the namespace "System.Data" (are you missing an assembly reference?)
and im not sure why
Comment