FieldUtilitiesDetermineIfFieldShouldBeSet Method |
Determines if the field should be set to the value passed in.
Namespace:
SD.LLBLGen.Pro.ORMSupportClasses
Assembly:
SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.4.0.0 (5.4.0)
Syntax public static bool DetermineIfFieldShouldBeSet(
bool fieldIsChanged,
Object currentValue,
Object dbValue,
bool entityIsNew,
Object value
)
Public Shared Function DetermineIfFieldShouldBeSet (
fieldIsChanged As Boolean,
currentValue As Object,
dbValue As Object,
entityIsNew As Boolean,
value As Object
) As Boolean
Parameters
- fieldIsChanged
- Type: SystemBoolean
if set to true [field is changed]. - currentValue
- Type: SystemObject
The current value. - dbValue
- Type: SystemObject
The db value. - entityIsNew
- Type: SystemBoolean
if [entity is new]; otherwise, . - value
- Type: SystemObject
Value.
Return Value
Type:
Boolean
true if the field should be set with the value, false otherwise
See Also