We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Taavi Kõosaar created an issue — 10th July 2012, 13:41:08:
var st1 = from ultt in _nHibernateSession.Query<UnitLeadTimeTemplate>() where ultt.Unit.Id == unitId select ultt.LeadTimeTemplate; st1.ToList(); var st2 = from ultt in _nHibernateSession.Query<UnitLeadTimeTemplate>() from ltt in _nHibernateSession.Query<LeadTimeTemplate>() where ultt.Unit.Id == unitId select ltt; st2.ToList(); var st3 = from ultt in _nHibernateSession.Query<UnitLeadTimeTemplate>() join ltt in _nHibernateSession.Query<LeadTimeTemplate>() on ultt.LeadTimeTemplate.Id equals ltt.Id where ultt.Unit.Id == unitId select ltt; st3.ToList(); -- statement #1 select leadtimete1_.lead_time_template_id as lead1_24_, leadtimete1_.Name as Name24_, leadtimete1_.Description as Descript3_24_ from unit_lead_time_template unitleadti0_ left outer join lead_time_template leadtimete1_ on unitleadti0_.lead_time_template_id = leadtimete1_.lead_time_template_id where unitleadti0_.unit_id = 8378 /** @p0 **/ -- statement #2 select leadtimete1_.lead_time_template_id as lead1_24_, leadtimete1_.Name as Name24_, leadtimete1_.Description as Descript3_24_ from unit_lead_time_template unitleadti0_, lead_time_template leadtimete1_ where unitleadti0_.unit_id = 8378 /** @p0 **/ -- statement #3 select leadtimete1_.lead_time_template_id as lead1_24_, leadtimete1_.Name as Name24_, leadtimete1_.Description as Descript3_24_ from unit_lead_time_template unitleadti0_, lead_time_template leadtimete1_ where leadtimete1_.lead_time_template_id = unitleadti0_.lead_time_template_id and unitleadti0_.unit_id = 8378 /** @p0 **/ Even though in the mapping of UnitLeadTimeTemplate i have configured: Many-To-One with not-null="true" and outer-join="false" There doesnt seem to be any consistent way to force inner-join to happen with linq query implementation in NH.
var st1 = from ultt in _nHibernateSession.Query<UnitLeadTimeTemplate>() where ultt.Unit.Id == unitId select ultt.LeadTimeTemplate; st1.ToList(); var st2 = from ultt in _nHibernateSession.Query<UnitLeadTimeTemplate>() from ltt in _nHibernateSession.Query<LeadTimeTemplate>() where ultt.Unit.Id == unitId select ltt; st2.ToList(); var st3 = from ultt in _nHibernateSession.Query<UnitLeadTimeTemplate>() join ltt in _nHibernateSession.Query<LeadTimeTemplate>() on ultt.LeadTimeTemplate.Id equals ltt.Id where ultt.Unit.Id == unitId select ltt; st3.ToList();
-- statement #1 select leadtimete1_.lead_time_template_id as lead1_24_, leadtimete1_.Name as Name24_, leadtimete1_.Description as Descript3_24_ from unit_lead_time_template unitleadti0_ left outer join lead_time_template leadtimete1_ on unitleadti0_.lead_time_template_id = leadtimete1_.lead_time_template_id where unitleadti0_.unit_id = 8378 /** @p0 **/ -- statement #2 select leadtimete1_.lead_time_template_id as lead1_24_, leadtimete1_.Name as Name24_, leadtimete1_.Description as Descript3_24_ from unit_lead_time_template unitleadti0_, lead_time_template leadtimete1_ where unitleadti0_.unit_id = 8378 /** @p0 **/ -- statement #3 select leadtimete1_.lead_time_template_id as lead1_24_, leadtimete1_.Name as Name24_, leadtimete1_.Description as Descript3_24_ from unit_lead_time_template unitleadti0_, lead_time_template leadtimete1_ where leadtimete1_.lead_time_template_id = unitleadti0_.lead_time_template_id and unitleadti0_.unit_id = 8378 /** @p0 **/
Even though in the mapping of UnitLeadTimeTemplate i have configured: Many-To-One with not-null="true" and outer-join="false"
not-null="true"
outer-join="false"
There doesnt seem to be any consistent way to force inner-join to happen with linq query implementation in NH.
The text was updated successfully, but these errors were encountered:
Add test for nhibernate#1128
b17820a
Add cross join support for Hql and Linq query provider (#2327)
6c252ee
Fixes: #1128, closes #1060
7e611e1
39e83c9
Add cross join support for Hql and Linq query provider (nhibernate#2327)
26f4b63
Fixes: nhibernate#1128, closes nhibernate#1060
f4d4849
Add left join support for Linq query provider (#2328)
d25d07b
* Add test for #1128 Fixes #864
Successfully merging a pull request may close this issue.
Taavi Kõosaar created an issue — 10th July 2012, 13:41:08:
The text was updated successfully, but these errors were encountered: