views:

159

answers:

1

Hi there,

Can anyone help?

I have a created a relationship between my Reservation(prim key) and Insurance(for key) tables and imported into linq2sql and checked my automatically created c# files and sure enough i have reservation.MyFieldNames etc etc PLUS reservation.Insurance which is my relationship but reservation.Insurance i can't see the fieldnames of Insurance - am i missing something?

Do i have to call a GetInsurances or something? I don't see anything.. In fact Insurance is of type Linq.entityset???

Also i was hoping to create my reservation table (which was nice and easy) and then automatically "INJECT" a Insurance (i.e. 1 to many) from Ilist or something..

Is this not possible,

Any help really appreciated

p.s. I did create my automatically created c# dto files via T4 Toolbox but this shouldn't make any difference. I just have a separate file for each entity..

+2  A: 
marc_s
thanks you have opened my eyes, i think i got it now!! thanks
mark smith