I have a master table Person
and a detail table Events
I need to filter master table rows based on child row property SomeId
.
Could anyone please show me how to do it ?
Thanks in advance!
I have a master table Person
and a detail table Events
I need to filter master table rows based on child row property SomeId
.
Could anyone please show me how to do it ?
Thanks in advance!
var q = db.Events.Where(p=>p.SomeId == 4).Select(p=>p.Person).Distinct();