sapiens/SqlFu

QueryOnly seems not to work

Closed this issue · 2 comments

According to the docs the QueryOnly Attribute should prevent write access of the column.
But it seems that it also prevents the reading of the column, because in my case the columns is always null.

In the class ExpressionSqlBuilder in the method

public ExpressionSqlBuilder<T> WriteSelectAllColumns()

is the following line

if (_ti.Excludes.Contains(c)) continue;

This seems wrong to me.
The accompaning test seems not to fail because of the unfortunate default value 0 of the column.

If you're certain it's a bug, I'm accepting PRs

Fixed in release 2.3.7