Transient - Front- & Back-End Development - Front- & Back-End Development - Progress Community
 Front- & Back-End Development

Transient

  • Transient
  • 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
  • Hi Daniel ,

    Check this article

    www.telerik.com/.../field-attributes-transient.html

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>
  • 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
  • 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 >>