S
SftwDude
I get the following warning in my C# program:
DBML1062: The Type attribute 'tblPart' of the Association element
'tblAssembly_tblPart' of the Type element 'tblAssembly' does not have a
primary key. No code will be generated for the association.
tblAssembly and tblPart form a one-to-many relationship with the Primary Key
in tblAssembly. I built the relationship by dragging both tables onto the
Object Relational Designer from the Server Explorer. The relationship already
exists in the SQL database, so the association was automatically drawn on the
designer. I've tried deleting the association and rebuilding it by hand using
the Association in the Toobox. Still get the same warning.
How can I resolve this warning? It is preventing me from assessing the Part
class entity directly from the Assembly class entity.
Thanks
DBML1062: The Type attribute 'tblPart' of the Association element
'tblAssembly_tblPart' of the Type element 'tblAssembly' does not have a
primary key. No code will be generated for the association.
tblAssembly and tblPart form a one-to-many relationship with the Primary Key
in tblAssembly. I built the relationship by dragging both tables onto the
Object Relational Designer from the Server Explorer. The relationship already
exists in the SQL database, so the association was automatically drawn on the
designer. I've tried deleting the association and rebuilding it by hand using
the Association in the Toobox. Still get the same warning.
How can I resolve this warning? It is preventing me from assessing the Part
class entity directly from the Assembly class entity.
Thanks