CodeSmith Community
Your Code. Your Way. Faster!

Duplicate Foreign Keys

Latest post 07-05-2008 1:29 PM by acgritt. 2 replies.
  • 07-05-2008 7:41 AM

    • acgritt
    • Not Ranked
    • Joined on 07-05-2008
    • Posts 4
    • Points 110

    Duplicate Foreign Keys

    We are using the 2.2 release of netTiers.  We have a table that has a primary key and then two fields that are foreign keys to the same table.  This causes an issue with the generated code in that it generates duplicate methods for the foreign keys since they are to the same table.  Does anyone know if this has been fixed or how to work around this without having to hand-modify the generated code each time to remove the duplicate methods?

    Filed under:
    • Post Points: 35
  • 07-05-2008 11:24 AM In reply to

    • vbandrade
    • Top 25 Contributor
    • Joined on 09-27-2007
    • Brasil
    • Posts 242
    • Points 6,195

    Re: Duplicate Foreign Keys

    Can you please post you schema?

    I created a test case here and looks like tha latest build of .netTiers solves this case.

    Try the Beta version, it should work.

     

    hth 

    • Post Points: 35
  • 07-05-2008 1:29 PM In reply to

    • acgritt
    • Not Ranked
    • Joined on 07-05-2008
    • Posts 4
    • Points 110

    Re: Duplicate Foreign Keys

     I will give it a try and let you know.  Thanks for the information.

    • Post Points: 5
Page 1 of 1 (3 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems