How do I map (using xml-based approach) a value object (component)
which contains ISet<String>
property?
[Serializable]
public class Contact
{
public ISet<String> PhoneNumbers { get; set; }
public String Email { get; set; }
}
Thanks!
Use
element
.If you're going to use PhoneNumbers property just for displaying purpose, consider "cheaper" approach with serializing the data, without separate table and separate query to fetch the collection.