To understand how the translation is done we use the SmartSniff ( [www.nirsoft.net] ) or some ther util like this.
Wtih a test proiect we can check what is passing between our app and the sql server.
It´s timer consuming but this was the esiest way for us.