开发者

How to perform join using LINQ for NHibernate

开发者 https://www.devze.com 2022-12-23 02:24 出处:网络
Can i join two tables usingLINQ开发者_JS百科 for NHibernate like I can do in LINQ To SQL? ok, i got some weird tag for having this question un-answered! so im gonna post an answer myself :) . the thin

Can i join two tables using LINQ开发者_JS百科 for NHibernate like I can do in LINQ To SQL?


ok, i got some weird tag for having this question un-answered! so im gonna post an answer myself :) . the thing is LINQ to Nhibernate is not mature enough to handle this. Hopefully it will be available in a next release.


This question was from several years ago.

I just wanted to note for anyone running across it that you can do joins with linq and it works. Also if you set up the relationships in the models you often don't even need to specify the join, nHibernate works it out from the fields you are projecting into the resultset.

0

精彩评论

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