I had an unsolvable problem with the database library and insert query. I can't get id of LastInsertRowId synchronously, callback is asynchronously function, but i need to get ID synchronously. How to get it?
Insert query
Insert records into the database using an INSERT statement.
[HookMethod("Insert")]
long Insert(string sqlQuery, object[] args = null)
{
Sql Command = this.Command(sqlQuery, args);
sqlLibrary.Insert(Command, sqlConnection);
return sqlConnection.LastInsertRowId;
}