Normally all queries on an SqlExpression API needs to be the table that’s queried so OrmLite has access to the table metadata, however in this case the expected behavior when using an Interface would be not to prefix the query with the table name which should be resolved from the latest v4.5.11 release that’s now available on MyGet.
That’s the result of removing the Table prefix, you’re executing this on a query that has multiple ValidTo columns for which ValidTo IS NULL SQL Fragment is now ambiguous so removing the table prefix wont work if you’re joining multiple tables with the same ValidTo column name.
The best we can do is change it so if the Interface matches the base Table in SqlExpression<Table> then we’ll apply the condition to the base table. That’s all we can do to support conditions on interfaces which are not normally supported.
This change is now available from the official v4.5.12 fix release that’s now published on NuGet.