Association in Linq to SQL -



Association in Linq to SQL -

i have pretty simple model client , item, one-to-many relation between them (one client can have many items). used designer place entities , see association between them in designer. xml reflects this:

<association name="vgmficustomer_vgmfiitem" member="vgmficustomer" thiskey="customerlink" otherkey="customer" type="vgmficustomer" isforeignkey="true" />

trouble in designer.vb, there's no mention of association, cannot customer.items in code. did miss step in generating model? or maybe need add together navigation property manualy? come ef.net background, navigation properties created automatically.

it sounds have association setup 1 direction, not other. in dbml, there should association element each type. may want seek removing association in designer , re-adding it.

linq-to-sql

Comments

Popular posts from this blog

delphi - blogger via idHTTP : error 400 bad request -

c++ - compiler errors when initializing EXPECT_CALL with function which has program_options::variables_map as parameter -

How do I check if an insert was successful with MySQLdb in Python? -