Click or drag to resize

CompareByFieldKey Constructor (String, SessionBase, Boolean, Boolean, Boolean)

Compares objects by comparing one or more data fields of type Key

Namespace:  VelocityDb.Collection.Comparer
Assembly:  VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax
public CompareByField(
	string field,
	SessionBase session,
	bool doIdCompareIfEqual = false,
	bool sortStringsByHashCode = false,
	bool ascendingSort = true
)

Parameters

field
Type: SystemString
Primary field to use for comparison.
session
Type: VelocityDb.SessionSessionBase
The managing session
doIdCompareIfEqual (Optional)
Type: SystemBoolean
Optionally compare Oid's when fields are equal between compared objects
sortStringsByHashCode (Optional)
Type: SystemBoolean
Sort string fields by hash code first then secondly as normal string compare
ascendingSort (Optional)
Type: SystemBoolean
If (default), sort in ascending order, otherwise in descending order
See Also