If we consider this example
But now quantity is a Value Object instead of a primitive type:
public class LineItem { public Quantity Quantity { get; set; } public Product Product { get; set; } }
instead of:
public class LineItem { public int Quantity { get; set; } public Product Product { get; set; } }
how could i map this:
HasMany<LineItem>(x => x.LineItems)
.Component(c =>
{
**c.Map(x => x.Quantity);**
c.References<Product>(x => x.Product);
}).AsList();
considering that fluentnhibernate doesn't accept this:
HasMany<LineItem>(x => x.LineItems)
.Component(c =>
{
**c.Component(x => x.Quantity...);**
c.References<Product>(x => x.Product);
}).AsList();
thanks