Multiple Foreign Keys generates invalid code
Brought to you by:
intesar66
If there are multiple foreign keys on a Table, then
multiple definitions for the relationship are generated
using the same name.
Sample:
public MDP_MODULE_DEPENDENCYEntityCollection
MDP_MODULE_DEPENDENCY{
get{return new
MDP_MODULE_DEPENDENCYEntityCollection(new
MDP_MODULE_DEPENDENCYDAO
().SelectAllByMDP_APM_MODULE_CODE
(this._APM_MODULE_CODE));}
}
public MDP_MODULE_DEPENDENCYEntityCollection
MDP_MODULE_DEPENDENCY {
get{return new
MDP_MODULE_DEPENDENCYEntityCollection(new
MDP_MODULE_DEPENDENCYDAO
().SelectAllByMDP_APM_REFERENCED_MODULE
(this._APM_MODULE_CODE));}
}
Logged In: YES
user_id=872481
I discovered the same bug and fixed it in the code that does
VB framework generation. I'm sure the same fix will work in
the C# generation.