Here is my issue.
I have a customer table and an address table. The customer table has two foreign keys to the address table. ShippingAddressFK and BillingAddressFK
Normally I'd just have AddressFK if it was just one foreign key. But since it's two I'm not sure how to go about it.
I saw this: Fluent Nhibernate AutoMapping -- 2 foreign keys to same table?
But I'm not sure how to translate that to the Sharp Lite Architecture override .cs file.
In the MyStore example this was the closest I could find:
public class OrderOverride : IOverride
{
public void Override(ModelMapper mapper) {
mapper.Class<Order>(map => map.Property(x => x.OrderStatus,
status => {
status.Type<OrderStatusCustomType>();
status.Column("OrderStatusTypeFk");
}));
}
}
I notice they are similar I'm just not sure how to change the solution above to fit this sort of override class in the Sharp Lite Architecture