Hi,
Not getting bored of me yet?
Still the same Entities:
I have an entity (EC001) which has an 1:n relation with EC002 this entity has an 1:1 relation with EC003 and EC006.
EC002.Groep = EC003.Groep
EC002.Item = EC006.Item
With a prefetch path I can select these in 1 go.
But I would like an overview in a datagrid with data from EC002, EC003 and EC006
In SQL this would look like:
select ec002.ordnr as [Order], ec002.fase as [Phase], ec003.omsch30_1 as [Groep], ec006.omsch30_1 as [Item], ec002.aantl as [Count] from ec002
inner join ec003 on ec003.groep = ec002.groep
inner join ec006 on ec006.item = ec002.item
where ec002.ordnr = '0000994501' and ec002.fase = '001'
But is there a way to do the following directly on my collection or do I have to go select this seperatly in my database.
I was thinking about a TypedView or TypedList but this also goes back to the SQL Server.
Thanks in advance