i'll use some sample code to demonstrate my problem...
this is an entity
public class Channel : EntityBase
{
[DataMember]
public virtual IList<LocalChannel> LocalChannels { get; set; }
}
local channel has a string property.
this 2 classes mapped fluently and works fine with the has many relation.
the problem is in the wcf service.
when i'm selecting a channel or all channels.
the localChannels list is fixed size. (the type of ILIst that returns is typed array)
i want i to be a List.
Nhibernate wont let me to write this:
public virtual List<LocalChannel> LocalChannels { get; set; }
becuase it cant cast his collections to List
and my proxy is written in code and not generated with svcutil so i cant change the collection type.
any solutions?