This topic applies to .NET version only
There are different ways to prevent fields persistence in .NET:For example, let's create a FieldTransient attribute and mark it to prevent object persistence:
Let's use the newly-defined FieldTransient attribute and the system-provided Transient, and compare the results:We will save and retrieve both Test and TestCustomized objects, having transient fields defined in different manner: