yasser777 / nettiers

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

Self Referencing Many to Many Relationship #353

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Create Tables and relationships as in example
2.Generate .nettiers layers using example csp
3.load test.aspx?productis=2 with product already created in db
4.select product from dropdown and click add
5.you will see that ChildProductIdSource is null
6.click update, this will execute deepsave.
7.check related products table no new record was created

What is the expected output? What do you see instead?
you will see that ChildProductIdSource is null and related products table no 
new record after update

What version of .netTiers and CodeSmith are you using?
codesmith 5.2.2 rev 11561

Please provide any additional information below.

Original issue reported on code.google.com by keyok...@gmail.com on 4 Nov 2010 at 6:18

Attachments:

GoogleCodeExporter commented 9 years ago
using latest rev of .nettiers from subversion repo

Original comment by keyok...@gmail.com on 4 Nov 2010 at 6:20

GoogleCodeExporter commented 9 years ago
Hello,

The reason that no records were updated was due to the fact that the Types 
parameter that was passed into the DeepSave did not specify the collection of 
related products:

Type[] childTypes = new Type[] { typeof(RelatedProduct), 
typeof(TList<RelatedProduct>) };

Thanks
-Blake Niemyjski

Original comment by bniemyjski on 5 Nov 2010 at 12:58

GoogleCodeExporter commented 9 years ago
ok thanks but I have updated this  and now records are added to db etc but I 
need to do a deepload again before the ChildProductIdSource field is accessible 
where is should 

Original comment by keyok...@gmail.com on 5 Nov 2010 at 1:05