This is a migrated thread and some comments may be shown as answers.

Disable the insert of nested types

2 Answers 41 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Juan Esteban Giraldo Gómez
Top achievements
Rank 1
Juan Esteban Giraldo Gómez asked on 18 Feb 2010, 04:07 AM

Hi, 

I have an entity called Product related with an entity called category. Each time that I want to insert a product, telerik open access try to insert the category selected in the product. I solved the problem removing the category's reference in the product entity but I want to know if there are another way to disable the insert of nested types in the entity?

Thanks a lot...

2 Answers, 1 is accepted

Sort by
0
Accepted
Jan Blessenohl
Telerik team
answered on 19 Feb 2010, 05:49 PM
Hi Juan Esteban Giraldo Gómez,
This is a feature called 'persistence by reach-ability'. Everything that is reachable from a persistent object is persistent as well.

If you do not want to store the content of the reference at all you can decorate the reference with the [Transient] attribute or your have to set it to null.

Kind regards,
Jan Blessenohl
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Juan Esteban Giraldo Gómez
Top achievements
Rank 1
answered on 19 Feb 2010, 07:33 PM
Thanks a lot Jan...
Tags
General Discussions
Asked by
Juan Esteban Giraldo Gómez
Top achievements
Rank 1
Answers by
Jan Blessenohl
Telerik team
Juan Esteban Giraldo Gómez
Top achievements
Rank 1
Share this question
or