Adds a mapping condition. Used for entity inheritance (e.g. TPH discriminators) or entity splitting.

Namespace: HuagatiEDMXTools
Assembly: HuagatiEDMXTools (in HuagatiEDMXTools.dll) Version: 2.21.4044.31765

Syntax

C#
public MappingCondition AddMappingCondition(
	ModelEntityType modelEntityType,
	StoreMemberProperty discriminatorColumn,
	string discriminatorValue
)
Visual Basic
Public Function AddMappingCondition ( _
	modelEntityType As ModelEntityType, _
	discriminatorColumn As StoreMemberProperty, _
	discriminatorValue As String _
) As MappingCondition
Visual C++
public:
MappingCondition^ AddMappingCondition(
	ModelEntityType^ modelEntityType, 
	StoreMemberProperty^ discriminatorColumn, 
	String^ discriminatorValue
)

Parameters

modelEntityType
Type: HuagatiEDMXTools..::..ModelEntityType
Conceptual model entity type that this condition applies to.
discriminatorColumn
Type: HuagatiEDMXTools..::..StoreMemberProperty
Store member that is used for the mapping condition.
discriminatorValue
Type: System..::..String
Discriminator value that makes the mapping valid.

Return Value

A MappingCondition object.

See Also