I am making project in Unity3D using MySQL server. How can I make SQL-queries using LINQ? Because Unity3D working with .net 2.0 there is no way to use EntityFramework or smth like that, so I am have to type SQL-query by myself like that:
var command =
"INSERT INTO `person` (`surname`, `name`, `patronymic`, `login`, `password`, `category`, `organization`, `city`) VALUES ('" +
surname +
"','" + name + "','" + patronymic + "','" + login + "', '" + encrpass + "','" + category + "','" +
organization + "','" + city + "');";
try
{
var cmd = new MySqlCommand(command, Connection);
cmd.ExecuteNonQuery();
}
catch (Exception ex)
{
Debug.Log(ex.ToString());
}
Whether there is a more simple way to use MySQL from Unity? Thanks.