Project

General

Profile

Dbo conditions into relationships

Added by ronald viscarra about 10 years ago

hi, having

A that belongs to B

how can I achieve a query as:

SELECT A.* FROM A INNER JOIN B ON A.B_id=B.id WHERE B.id=10 ORDER BY B.name ASC

?

I'm interesting in the way to pass params to the related objects.

Thanks in advance.


Replies (1)

RE: Dbo conditions into relationships - Added by Koen Deforche about 10 years ago

Hey,

That would be something like session.query<dbo::ptr>("select a from A a inner join B b on a.B_id=b.id WHERE b.id=10 ORDER BY b.name ASC");

Regards,

koen

    (1-1/1)