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
)
Public Sub New (
field As String,
session As SessionBase,
Optional doIdCompareIfEqual As Boolean = false,
Optional sortStringsByHashCode As Boolean = false,
Optional ascendingSort As Boolean = true
)
public:
CompareByField(
String^ field,
SessionBase^ session,
bool doIdCompareIfEqual = false,
bool sortStringsByHashCode = false,
bool ascendingSort = true
)
new :
field : string *
session : SessionBase *
?doIdCompareIfEqual : bool *
?sortStringsByHashCode : bool *
?ascendingSort : bool
(* Defaults:
let _doIdCompareIfEqual = defaultArg doIdCompareIfEqual false
let _sortStringsByHashCode = defaultArg sortStringsByHashCode false
let _ascendingSort = defaultArg ascendingSort true
*)
-> CompareByField
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