Hi, let's say I have the following object

public class Customer
{
  public virtual string Name {get; set;}
  public virtual Address[] Addresses {get; set;}
}

Where I am ok with Addresses being stored serialized in a single
column.
Easy. I put a [Serializeable] attribute on the Address class and
mapped Map(x=>x.Addresses).CustomType("Serializable") and everything
works great.

Now I get a requirement that instead of Address[] being binary
serialized, it should be serialized to Xml. This is something that I
assume has been done a million times before, but all I can find is
this post: 
http://www.codewrecks.com/blog/index.php/2009/05/14/use-xml-field-in-sqlserver-with-nhibernate/
and here there is a crucial bit of code (the XmlHelper class)
missing.  Does anyone have an XmlCustomUserType that they don't mind
me ripping off?

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to