Iam testing the capabilities of NHibernate framework and I am currently stuck with mapping a collection of collections. While mapping simple collection of objects, like:
public virtual IList<IProduct> SomeProduct { get; set; }
I simply used
HasMany(x => x.Products).Cascade.All();
And then I mapped the IProduct interface.
But now, I have to implement mapping for this property:
private readonly IEnumerable<IReadOnlyList<Guid>> _complicatedEnumerableData;
public IEnumerable<IReadOnlyList<Guid>> ComplicatedEnumerableData
{
get { return _complicatedEnumerableData; }
}
I have tried similar approach as for the collection of standard objects, but I ended up with database table without any reference to IReadOnlyList<Guid> element.
Regarding to this question : Fluent Nhibernate map list of lists , it is not possible to map nested collections in Fluent NHibernate.
My question is - is it somehow possible using standard NHibernate (no Fluent) ?