I have domain classes Foo and Bar.  When I execute the following in
LinqPad, for example:

var query = from f in Foo.Queryable select f;
f.Dump();

I get a display indicating that the shape of the objects in result set
of the query matches the shape of Foo.  However, when I execute the
following,

var query = from f in Foo.Queryable
                 from b in Bar.Queryable
                 where f.Id == b.Id
                 select f;
f.Dump();

I get a result set with a single property and that property's value is
null for all rows returned.  This also occurs if I use a join clause
instead of joining the two Queryable IEnumerables by Id properties.

Also, if I execute, i.e.:
var query = from f in Foo.Queryable
                 from b in Bar.Queryable
                 where f.Id == b.Id
                 select f.Property1, f.Property2
f.Dump();

I see a result set that matches the select clause in the linq query

The SQL generated by the second query contains all of the expected
fields for Foo.

Could this be a bug in either ActiveRecord Linq or NHibernate Linq
trying to create an IQueryable<Foo>?

Thank you,
Jason Dufair

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to