Jeff-Lewis / codesmith

Automatically exported from code.google.com/p/codesmith
0 stars 0 forks source link

Limiting Class Properties of Primary/Foreign Keys #126

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Tables:
    Products (ProductId, Description, Price, LastUpdatedByPersonId)
    People (PersonId, FirstName, LastName)

Current:
    Products: Id, Description, Price, LastUpdatedByPerson (person who last
updated the product)
    People: Id, FirstName, LastName, Products (list of products updated by
this person)

Desired:
    Products: Id, Description, Price, LastUpdatedByPerson (person who last
updated the product)
    People: Id, FirstName, LastName

Possible Solution: Add an ExtendedProperty on the class describing the
directionality of the relationship on the generated classes (e.g.
cs_direction: both (default), primary, foreign).

Original issue reported on code.google.com by tdupont...@gmail.com on 24 Aug 2009 at 4:10

GoogleCodeExporter commented 9 years ago

Original comment by tdupont...@gmail.com on 24 Aug 2009 at 4:14

GoogleCodeExporter commented 9 years ago

Original comment by tdupont...@gmail.com on 28 Sep 2009 at 4:00