Hi there
I'm just having a first look at NHibernate which looks really promising :)
However, I'm not sure whether I can make it fit my rather complex model. My main concern ist the serialization of such a class:
Code:
public class BusinessObject
{
string key;
DateTime lastUpdate;
object currentValue;
}
The field
currentValue can hold arbitrary objects. All of them have in common that they are marked as
Serializable, but two instances of
BusinessObject can have completely different object (e.g. one stores a
Color value, another one a
Size structcure and a third one a string or numeric value).
I assume the corresponding column in the table would either be binary to get binary serialization or text (serialized value with base64 encoding).
Can NHibernate handle proper storage and retrieval of such objects?
Thanks for your advice
Philipp