Database Reference
In-Depth Information
Figure 2-19. Creating the conditional mapping for the Account entity to the Account table
6.
Right-click the DeletedOn property and select Delete. Because we're using the DeletedOn
column in a conditional mapping, we can't map it to a property. Its value would always be
null anyway in our model.
How It Works
Conditional mappings are often used when you want to apply a permanent filter on an entity. Conditional mappings
are also key to implementing Table per Hierarchy Inheritance. You can apply conditions using the following:
<value> Is Null
<value> Is Not Null
<integer> = <value>
<string> = <value>
 
Search WWH ::




Custom Search