0

Have a .net class that I want to persist/retrieve to/from Oracle 11g database using NHibernate. Contains an array of objects that NHibernate insists must be the interface type IDictionary, ISet, or IList. I also need to serialize the class to XML using XmlSerializer, however, XmlSerializer cannot serialize members of type IList (for example) "because it is an interface". Anyone have a solution to this problem?

dan
  • 21
  • 6

1 Answers1

1

NHibernate: How do I XmlSerialize an ISet<T>?

Bottom Line: Use DTOs.

Community
  • 1
  • 1
Jim G.
  • 15,141
  • 22
  • 103
  • 166