Click or drag to resize

RecordRestrictionCombineOr Method

Combines two record restrictions with an OR condition.

Namespace: GSF.Data.Model
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.258-beta+f8b6aa3dbfe0b4cc2b0b0760dd5d2a3dd4f59d09
Syntax
public static RecordRestriction CombineOr(
	RecordRestriction left,
	RecordRestriction right
)
View Source

Parameters

left  RecordRestriction
Left operand.
right  RecordRestriction
Right operand.

Return Value

RecordRestriction
New combined record restriction.
Remarks
If both parameters are null, result will be null. If one parameter is null and the other parameter is not, the non-null parameter will be returned. Equally, if the FilterExpression of both parameters are null, empty or only whitespace, then the result will be null. If one parameter has a filter expression that is null, empty or whitespace and the other parameter's filter expression is defined, then the parameter that has a filter expression will be returned.
See Also