Jeff-Lewis / codesmith

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

Persisting single table inheritance #108

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1.Create a database with single table inheritance
2.Create a new CodeSmith project file and add a dbml.cst output
3.Generate the dbml file.
4.Since the generator does not have enough information to infer the table
inheritance, correct the generated output in the designer by introducing
new classes for the subtypes and moving the appropriate properties and
associations to the subtype. Save changes
5.Regenerating the project results in properties that were removed from the
base type being added back to it and associations being moved from the sub
type back to the base type.

What is the expected output? What do you see instead?
The expected output is that the properties which were moved from the base
type to the subtype are not added back to the base type and that the
associations that were moved to the sub type are not moved back to the base
type. The results I have observed are just the opposite, properties that
were removed from the base type were added back to it and associations were
removed moved from the sub type back to the base type upon regeneration.

What version of the product are you using?
CodeSmith v5.1, Plinqo v2.x

Please provide any additional information below.
Is this feature supported, perhaps through some meta data somewhere? I
don't see how I could expect this to happen without providing the system
with some additional information but I have not been able to find
documentation to that extent anywhere on my internet.

Original issue reported on code.google.com by blakefr...@gmail.com on 21 Jun 2009 at 5:53

GoogleCodeExporter commented 9 years ago

Original comment by tdupont...@gmail.com on 29 Jun 2009 at 7:27

GoogleCodeExporter commented 9 years ago
We have just added support for inheritance with revision 748.  Can you update 
to the 
latest version of plinqo and see if this works for you?

Original comment by shannon....@gmail.com on 29 Jun 2009 at 9:23

GoogleCodeExporter commented 9 years ago

Original comment by shannon....@gmail.com on 30 Jun 2009 at 3:08

GoogleCodeExporter commented 9 years ago

Original comment by shannon....@gmail.com on 28 Aug 2009 at 4:34

GoogleCodeExporter commented 9 years ago

Original comment by shannon....@gmail.com on 30 Dec 2009 at 5:43

GoogleCodeExporter commented 9 years ago

Original comment by shannon....@gmail.com on 30 Dec 2009 at 6:04

GoogleCodeExporter commented 9 years ago

Original comment by shannon....@gmail.com on 30 Dec 2009 at 9:16