Transient

Posted by Community Admin on 05-Aug-2018 14:21

Transient

All Replies

Posted by Community Admin on 31-May-2011 00:00

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

Posted by Community Admin on 31-May-2011 00:00

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 >>

Posted by Community Admin on 31-May-2011 00:00

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

Posted by Community Admin on 31-May-2011 00:00

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 >>

This thread is closed