Jeff-Lewis / codesmith

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

PLINQO Associations will be deleted #92

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

I have 2 Tables in my DB. Between these 2 Tables doesn't exist any 
reference eg. foreign key.

1. I generate PLINQO Model, Template Dbml.cst

2. I add manually in Visual Studio with help of LinqToSQL Designer an 
association between these 2 Tables

3. I re-generate PLINQO Model, Template Dbml.cst

4. I check my schema in LinqToSQL Designer, my association is away.

I think, Function "RemoveExtraMembers" in DbmlGenerator.cs could be one 
point to check.

Original issue reported on code.google.com by backa.pe...@googlemail.com on 14 Apr 2009 at 4:01

GoogleCodeExporter commented 9 years ago
This is the expected behavior.  PLINQO will keep the dbml file in sync with the
database.  We will explorer ways to support your scenario in the future. 

Original comment by paul.wel...@gmail.com on 21 Apr 2009 at 2:24

GoogleCodeExporter commented 9 years ago

Original comment by paul.wel...@gmail.com on 21 Apr 2009 at 2:31

GoogleCodeExporter commented 9 years ago

Original comment by shannon....@gmail.com on 21 Apr 2009 at 3:57

GoogleCodeExporter commented 9 years ago
In the latest build, you can add the association name to the UserAssociations 
list in
the Dbml.cst template to have it not drop the association that was manually 
added.

Original comment by paul.wel...@gmail.com on 26 May 2009 at 2:28

GoogleCodeExporter commented 9 years ago
How/where can I get this latest build?

Original comment by adamg...@gmail.com on 1 Jun 2009 at 5:24

GoogleCodeExporter commented 9 years ago
You can find the link for the nightly builds at http://plinqo.com/Download.ashx

Original comment by shannon....@gmail.com on 2 Jun 2009 at 3:00