DTO to provide the following to application:
The ItemPricingRule allows a price to be calculated for an Item that is subject to various rules such as:
Each pricing rule has a discriminator column ("rule") that indicates which subclass should be used. This allows a single polymorphic collection to be built up which can then be applied using assigned field values.
|
|