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
Post a Comment