Disable the insert of nested types

Thread is closed for posting
3 posts, 1 answers
  1. Juan Esteban Giraldo Gómez
    Juan Esteban Giraldo Gómez avatar
    8 posts
    Member since:
    Aug 2009

    Posted 17 Feb 2010 Link to this post

    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. Answer
    Jan Blessenohl
    Admin
    Jan Blessenohl avatar
    707 posts

    Posted 19 Feb 2010 Link to this post

    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.
  3. Juan Esteban Giraldo Gómez
    Juan Esteban Giraldo Gómez avatar
    8 posts
    Member since:
    Aug 2009

    Posted 19 Feb 2010 Link to this post

    Thanks a lot Jan...
Back to Top