Hi there, I have two, hopefully simple, questions. 1) Is it possible to activate compression on fields in 4.0? Something like the attribute [StorageValueModifier(typeof(Compressor))] in 3.9.5? 2) How do I set a field to be translatable in 4.0? Best regards, Rune This thread was imported from our support forum. The original discussion may contain more detailed answer. Original topic by Rune Højsgaard. |
1) No. Moreover, we don't support serializable objects any more. The decision to leave this for developers is made because actually it's really rather simple to achieve this. So most likely we'll just provide a pattern for this in Wiki. Basically, you should create a pair of "backing" persistent property (private / internal) and public non-persistent property to implement this. Non-persistent property must implement all the compression / decompression logic. If this logic is extracted to separate types, the code for such a public property must be really simple:
2) We don't support translatable fields yet. Moreover, we plan to implement them differently, see http://code.google.com/p/dataobjectsdot ... tail?id=90 |