Fetch method in LINQ only seems to work if there is no select clause
statement.

"session.Query<Company>().Fetch(c => c.Employees).ToList()" works
fine.

However:

"session.Query<Company>().Fetch(c => c.Employees).Select(c =>
c).ToList()" which is the same as
"(from comp in session.Query<Company>().Fetch(c => c.Employees) select
comp).ToList()" throws a NotSupported exception.

This means you cannot have Fetch in any non-trivial queries.

Is this a known issue or I am doing something wrong? Entities are
simple and are mapped using camel-case fields.

Reply via email to