Erwin Naming Standard

  • Hi,

    I'm using Erwin 4.0 to create the design for one of our products here. But I'm facing a problem in enforcing naming standards to the Forgien key.

     


    Regards,

    Jomy John Thomas

    Your Guide to Admin and Design

  • Do you mean enforcing the name or automatically naming the FKs?

  • Hi,

    I want to automatically Name the Fk

    as Fk_ChildTable$ChildColumn_ParentTable%ParentColumn


    Regards,

    Jomy John Thomas

    Your Guide to Admin and Design

  • Finaly I got it working after some 12 hours of research on all the various combinations of macros.

    %ForEachEntity{%ForEachChildRel(){%ForEachFKAtt() {

    ALTER TABLE %Child

    ADD CONSTRAINT FK_%EntityName(%Child)$%AttName_%EntityName(%Parent)$%ParentAtt(%AttName) FOREIGN KEY(%ChildFK()) REFERENCES %Parent(%ParentAtt(%ColName))}

    %DBMSDelim

    }}.

     


    Regards,

    Jomy John Thomas

    Your Guide to Admin and Design

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply