Is it possible to create a property within a POCO that is a collection of ComplexTypes?
[ComplexType]
public class Attachment
{
public string FileName { get; set; }
public byte[] RawData { get; set; }
public string MimeType { get; set; }
}
public class TestObject
{
public TestObject()
{
Attachments = new List<Attachment>();
}
public virtual ICollection<Attachment> Attachments { get; set; }
}
I have a feeling that this isn't possible... I've been doing my best to research it and it seems to me like ComplexTypes are more trouble than they're worth for several reasons.