Actually using DbFunction seem to append paranthesis with the global variable name @@VERSION which SQL Server does not seem to like
This is how I am setting up DbFunction in code
DbFunctionCall FCall = new DbFunctionCall("@@VERSION", new object[0]);
below is the query that is been triggered that give me error from SQL Server
SELECT DISTINCT @@VERSION() AS VersionNo, ClientName FROM Client
I have also tried below without any luck.
DbFunctionCall FCall = new DbFunctionCall("@@VERSION", null);
Any ideas how to tell LLBL not to add paranthesis here?