Menu

#7 Multiple Foreign Keys generates invalid code

v1.0.3.0
open
Functional (7)
5
2005-04-15
2005-04-14
No

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));}
}

Discussion

  • Sean McCormack

    Sean McCormack - 2005-04-15
    • assigned_to: nobody --> intesar66
     
  • Michael Brown

    Michael Brown - 2005-07-26

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.