Click or drag to resize

PersistenceInfoProviderBaseElementToTargetMappingRepresentsEquivalentMapping Method

Compares this ElementToTargetMapping instance with toCompareWith to see if they both represent the same mapping.

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.12.0.0 (5.12.0)
Syntax
public bool RepresentsEquivalentMapping(
	PersistenceInfoProviderBaseElementToTargetMapping toCompareWith,
	bool compareTargetContainerNames = false,
	bool compareActionCombinations = false,
	bool compareFieldCounts = true,
	bool throwExceptionWhenMismatch = true
)

Parameters

toCompareWith
Type: SD.LLBLGen.Pro.ORMSupportClassesPersistenceInfoProviderBaseElementToTargetMapping
The mapping to compare this element with
compareTargetContainerNames (Optional)
Type: SystemBoolean
If true (default is false) the catalog/schema/target name will also be compared.
compareActionCombinations (Optional)
Type: SystemBoolean
If true (default is false) the action combination values will be compared
compareFieldCounts (Optional)
Type: SystemBoolean
If true (default) the field counts will be compared
throwExceptionWhenMismatch (Optional)
Type: SystemBoolean
If true (default) this method will throw an ORMConfigurationException detailing the difference between this instance and toCompareWith. It's highly recommended to leave this argument set to true

Return Value

Type: Boolean
true if this instance and toCompareWith represent the same mapping. Note: if throwExceptionWhenMismatch is true (default) this method won't return false, but will instead throw an ORMConfigurationException.
See Also