Code: Select all
var intVariable = 0;
var results = this.DataContext.Table<Message>()
.Select(m => intVariable)
.ToList();
Query it executed:could not determine data type of parameter $1
Code: Select all
SELECT
$1 AS C1
FROM messages AS Extent1
Note: If I use that local variable in a Where clause (like 'Where(m => m.MessageId == intVariable)' ) the query executes just fine.
I am using version 7.3.135.0 of all the "Devar.Data.PostgreSql" DLLs.
Please let me know what other information you might require to diagnose this issue.