nhibernate-core icon indicating copy to clipboard operation
nhibernate-core copied to clipboard

Fix table group join issue

Open bahusoid opened this issue 3 years ago • 0 comments

Problematic scenario: invalid SQL is generated when joined entity with subclasses doesn't need subclass joins

//inner joined animal is not used in output (no need to join subclasses)
var resultsFromOuter1 = db.Animals.Join(db.Animals, o => o.Id, i => i.Id, (o, i) => o).Take(1).ToList();

bahusoid avatar Aug 11 '22 10:08 bahusoid