开发者

NHibernate 3 LINQ provider creates non-ansi join syntax

开发者 https://www.devze.com 2023-02-06 21:39 出处:网络
I\'m pretty new to LINQ (and NHibernate\'s LINQ provider) I have a query that joins 3 ta开发者_运维百科bles in a grandparent-parent-child using many-to-one mappings.

I'm pretty new to LINQ (and NHibernate's LINQ provider)

I have a query that joins 3 ta开发者_运维百科bles in a grandparent-parent-child using many-to-one mappings.

The actual SQL NHibernate is throwing out is using old-school FROM table1, table2, table3 join syntax.

Is there a way to make it use ANSI joins instead? (I see that using Fetch() will do this, but the syntax isn't exactly standard LINQ stuff)

Cheers, Mark


No, it's not possible.

Keep in mind that, while the ANSI syntax is cleaner and allows for easier outer joins, it's semantically equivalent to the "old one" for inner joins, so you shouldn't care.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号