method body replaced by unityLinker.exe with a notsupportedexception

I’m working with mysql.data and newtonsoft json dll for my game. There is a problem. I’m building my game with mono scriptbaackend method. My game works perfectly.

But when i use il2cpp My game mysqlconnection not working. it says

method body replaced by unityLinker.exe with a notsupportedexception

Editor works fine. But when i try on my mobile device i’m getting this error when i try to connect my database.

Have the same exception when try add colum to DataTable.

var dataTable = new DataTable();
dataTable.Columns.Add("result", typeof(string), input);