+1-888-365-2779
Try Now
More in this section

Forums / Sitefinity SDK / Transient

Transient

4 posts, 0 answered
  1. Daniel Plomp
    Daniel Plomp avatar
    112 posts
    Registered:
    14 Jun 2012
    31 May 2011
    Link to this post
    What does this [Transient] attribute mean exactly?
    It says that it's value will not be stored or maintained inside the database, but e.g. in the ProductsModule the field 'whatsInTheBox' is marked as Transient. I believe it's value is stored, right?

    Regards,
    Daniel
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    30 Sep 2016
    31 May 2011
    Link to this post
    Hi Daniel ,

    Check this article

    http://www.telerik.com/help/openaccess-orm/field-attributes-transient.html

    Greetings,
    Ivan Dimitrov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  3. Daniel Plomp
    Daniel Plomp avatar
    112 posts
    Registered:
    14 Jun 2012
    31 May 2011
    Link to this post
    Hi Ivan,

    Thanks for the reply.
    Sorry if I'm not (yet) understand it. I understand the example from the ORM manual: Age is a calculated field, so you can extract it from e.g. a birthday field and there is no need to save it.

    In the ProductsModule the field 'WhatsInTheBox' is a textfield you can fill in. Does it mean that this value isn't saved in the database? How does it get its value then?

    Regards,
    Daniel
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    30 Sep 2016
    31 May 2011
    Link to this post
    Hi Daniel,

    An object is transient until you do not add it to OA scope

    var ob = new SomeItem();
    scope.Add( ob );

    When e property is transient there is not database representation of the property.

    Regards,
    Ivan Dimitrov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

4 posts, 0 answered