Hi,
what's the difference between these two statements?
(this works:)
               var query = from data in session.Linq<Data>()
                            where Data.OriginId == id
                            select data;

(This throws QuerySyntaxException, data not mapped:)
               var query = from data in session.Query<Data>()
                            where Data.OriginId == id
                            select data;

I'm asking this because i found the Query<> type of thing in the
(considerable sparse) linq tests of nhibernate
when trying to optimize my code.

I currently have a problem with joined subclass mappings;
in the simplest case, consider three classes A, B, C where B and C
derive from A
if i use session.Linq<A> to query classes, the generated sql has all
fields of A,B and C in it's statement
but if i use session.Linq<B> to query things, i'd expect to only see
fields of A and B, not C but it's fields appear as well.
This used to work with nh 1.2 and an earlier checkout of linq from
svn. i thought maybe implementation changed a little and using
session.Query<B> would work instead.
I currently use a trunk checkout of nhibernate. I was trying to create
a testcase on this but did not succeed yet

If you have tips on these two things i'd be glad for any help
thanks in advance
nico

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nhusers" 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/nhusers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to