Hi,
we are currently using LLBLGen Pro Runtime Framework Version 5.10.2 (using the adapter style) and planning on upgrading to the latest version soon.
I observed something very strange the other day.
Take the following Linq query for instance:
Dim maxId = new LinqMetaData(adapter).MyTable.Max(Function(x) x.MyPrimaryKeyColumn)
This generates a query that loads the entire table "MyTable" (all columns). The MyPrimaryKeyColumn column is of data type integer.
I managed to reproduce this with lots of tables. However, I was not able to reproduce it with string and date columns.
I probably did not notice this before since I used to do the following, and only more recently started to drop the "select":
' This works
Dim maxId = new LinqMetaData(adapter).MyTable.Select(Function(x) x.MyPrimaryKeyColumn).Max()
Is this a bug? A pecularity of expression trees in vb.net?
Thanks,
andreas