Can't compile generated code after adding primary key to weak table

Posts   
 
    
scotru
User
Posts: 104
Joined: 16-Feb-2006
# Posted on: 16-Jan-2008 09:02:08   

Another tool I use requires PK for all tables, so I had to add primary key's to some weak (m-n) tables I use. I had some tables subtyped off of these tables and after I added primary keys, the subtype base entity classes will no longer compile.

The error messages I get are of the form "no overload for XXX takes X arguments."

Here's a specific example. I have a table application that is related to another table music through an m-n table applications_music. This table also has an attribute "preference" that can be either 'L' or 'D' (for like or dislike). I have two subtypes ApplicationMusicLikes and ApplicationMusicDislikes that use the preference discrinator. The Applications table then relates through these subtypes to get the two respective sets of musics. After adding a PK (id) to applications_music table, the base entity classes for ApplicationMusicLikes and ApplicationMusicDislikes will no longer compile. Instead, I get error messages of the form "no overload for XXX takes X arguments"

Any suggestions?

Thanks!

LLBLGenPro 1.0.2005.1 Final VS.NET 2005 Self Servicing (default templates) MySQL with CoreLabs

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 16-Jan-2008 09:48:53   

Would you please use the Designer to make sure the newly added PK propagates to the sub-Entities? If you come to a dead end, try to remove the sub entities and re-create them.