Ability to project collections using QueryOver

Description

Unable to project collections when using QueryOver:

Customer customerAlias = null;
Order orderAlias = null;
var list = _session.QueryOver<Customer>(() => customerAlias)
.JoinAlias(x => x.Orders, () => orderAlias, JoinType.LeftOuterJoin)
.Select(
Projections.Property(() => customerAlias.Name),
Projections.Property(() => customerAlias.Orders))//this is the issue
.List<object>();

Error returned is:
System.IndexOutOfRangeException : Index was outside the bounds of the array

Environment

None

Activity

Show:

Details

Assignee

Reporter

Labels

Components

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created June 6, 2012 at 10:59 AM
Updated September 9, 2014 at 12:16 AM
Who's Looking?