1
Vote

Bad LINQ query

description

I also discovered a bug in linq to opath transformation:
 
Class Event
{
            Person p;
            Action a;
}
 
Class Person
{
            String SocialSecurityNumber;
}
 
Class Unit
{
            String UnitNumber;
}
 
The Linq query “from Event e in repository.Find<Event>() where e.a.UnitNumber == “31” && e.p.SocialSecurityNumber == “1234” select e”
Will produce this opath: Event[exists(Unit[UnitNumber = '31-1' and SocialSecurityNumber = '1234'])]

comments