Thank you, Richard.  It turns out that the source of the problem was that my
primary key was defined incorrectly in one of the classes.

Thanks to all those working on Castle AR and NHibernate!  I really enjoy
working with this framework.
On Wed, Sep 21, 2011 at 4:44 PM, G. Richard Bellamy
<[email protected]>wrote:

> Have you tried this with a pure NHibernate model?
>
> Did you try
>
>
> var query = from f in Foo.Queryable
>         from b in Bar.Queryable
>         where f.Id == b.Id
>         select new { f, b }
>
> to see what happens?
>
> -rb
>
>
> On 9/21/2011 11:59 AM, Jason wrote:
>
>> 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 castle-project-users@**
> googlegroups.com <[email protected]>.
> To unsubscribe from this group, send email to castle-project-users+**
> [email protected]<castle-project-users%[email protected]>
> .
> For more options, visit this group at http://groups.google.com/**
> group/castle-project-users?hl=**en<http://groups.google.com/group/castle-project-users?hl=en>
> .
>
>

-- 
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