published some code for generating WCF-Data contracts that can be filled directly with NHibernate. For XSD2Code project this could be easily supported with adding the type System.Collections.Generic.IList<T> to list of possible collection type.
With current XSD2Code WCF generation I see 2 issues:
1.) It does not generate the KnownType attribute on base classes. This can lead to nasty serialization problems that result in "connection forcibly closed by the remote host" errors. You have to use WCF trace facility to detect it.
2.) It implements directly List<T> on collection properties and decorates them with the [XmlArrayItemAttribute] attribute. This doesn't work for WCF as this is a XML-Serializer attribute. To implement this correctly you would have create a class derived
from List<T> and then decorate this class with [CollectionDataContractAttribute]. In reality this has very little effect. All serialization will work, only the serialized XML may not be valid against the schema. See my
comments here for more details on the issue.