Closed GoogleCodeExporter closed 9 years ago
Hi, I don't think this scenario is consider a true many to many relationship.
I will
investigate it further.
Original comment by paul.wel...@gmail.com
on 11 Aug 2009 at 2:05
What I mean is
Table A - Table B One - Many (Cascade update/delete)
Table B - Table C One - Many (Cascade update/delete)
and Then I call it One to many to many.
Original comment by changchu...@gmail.com
on 15 Aug 2009 at 3:01
LINQ to SQL doesn't support this scenario therefore PLINQO will not be able to.
Original comment by shannon....@gmail.com
on 28 Aug 2009 at 4:17
Linq to SQL support this scenario.
When generate with microsoft designer.
the code as follow,
Association in Table B
<Association(Name:="TableA_TableB", Storage:="_TableA", ThisKey:="TableAID",
OtherKey:="TableAID", IsForeignKey:=true, DeleteOnNull:=true,
DeleteRule:="CASCADE")>
Association in Table C
<Association(Name:="TableB_TableC", Storage:="_TableB", ThisKey:="TableBID",
OtherKey:="TableBID", IsForeignKey:=true, DeleteOnNull:=true,
DeleteRule:="CASCADE")>
And PLINQO will generate like
Association in Table B
<Association(Name:="TableA_TableB", Storage:="_TableA", ThisKey:="TableAID",
OtherKey:="TableAID", IsForeignKey:=true, isUnique:=true,
DeleteRule:="CASCADE")>
Association in Table C
<Association(Name:="TableB_TableC", Storage:="_TableB", ThisKey:="TableBID",
OtherKey:="TableBID", IsForeignKey:=true, DeleteOnNull:=true,
DeleteRule:="CASCADE")>
The difference is within accociaion in table B:
PLINQO use "isUnique" instead of "deleteonnull"
Please check and have a comment, thanks.
Original comment by changchu...@gmail.com
on 29 Aug 2009 at 1:04
Original issue reported on code.google.com by
changchu...@gmail.com
on 5 Aug 2009 at 9:42