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)
Syntaxpublic bool RepresentsEquivalentMapping(
PersistenceInfoProviderBaseElementToTargetMapping toCompareWith,
bool compareTargetContainerNames = false,
bool compareActionCombinations = false,
bool compareFieldCounts = true,
bool throwExceptionWhenMismatch = true
)
Public Function RepresentsEquivalentMapping (
toCompareWith As PersistenceInfoProviderBaseElementToTargetMapping,
Optional compareTargetContainerNames As Boolean = false,
Optional compareActionCombinations As Boolean = false,
Optional compareFieldCounts As Boolean = true,
Optional throwExceptionWhenMismatch As Boolean = true
) As Boolean
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:
Booleantrue 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