sapiens/SqlFu

[QueryOnly] Is ignored when calling db.Update(item, where)

Closed this issue · 2 comments

If the where clause is Expression<Func<T, bool>>

It is generating this SQL

"update \"Issue\" set \"CallingUserId\"=@0 ...

When I have [QueryOnly] assigned to the CallingUserId property.

I should say, you have made lots of your internals publicly accessible, which makes it really easy to work around this issue. (I hate when libraries make all of their internals "internal" or "private" or whatever.) So, kudos. Even when there's a bug, it's trivial to work around it, because you wrote this library well. :)

Can't reproduce it. Update ignores a [QueryOnly] property test passes.