Given the table structure below, how do you project x and y only with nhibernate? How do you list the results, what is the type of the resulting list?
//Table structure, mapped in the traditional way
FunnyTable {
x [int] NOT NULL,
y [int] NULL,
z [int] NOT NULL
}
//assume criteria is set somewhere else
ProjectionList list = Projections.ProjectionList()
.Add(Projections.Property("x"))
.Add(Projections.Property("y"));
return criteria.SetProjection(list).List<???>??