error CT0201: Package "MySQL.Data.EntityFramework" not supported.
error CT0201: Package "MySQL.Data.EntityFramework" not supported.
23 Jan 2023, 06:36
When i try to use in my bot using MySQL data i cant run it. In VisualStudio it build ok but on Ctrader platform says
error CT0201: Package "MySQL.Data.EntityFramework" not supported.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using cAlgo.API;
using cAlgo.API.Collections;
using cAlgo.API.Indicators;
using cAlgo.API.Internals;
using MySql.Data.MySqlClient;
namespace cAlgo.Robots
{
[Robot(AccessRights = AccessRights.None)]
public class db : Robot
{
protected override void OnStart()
{
System.Diagnostics.Debugger.Launch();
}
protected override void OnBar()
{
string connetionString = null;
MySqlConnection cnn;
connetionString = "server=localhost;uid=root;pwd=\"\";database=fxdata";
cnn = new MySqlConnection(connetionString);
try
{
cnn.Open();
MessageBox.Show("Connection Open!");
cnn.Close();
}
catch (Exception ex)
{
MessageBox.Show("Can not open connection!");
}
}
protected override void OnStop()
{
}
}
}
jalmir.coelho@gmail.com
23 Mar 2023, 01:19
Same problem
@jalmir.coelho@gmail.com