Version

CreateDateRangeExpression<TDataObjectType> Method

Creates an System.Linq.Expressions.Expression that evaluates for date ranges.
Syntax
'Declaration
 
Protected Friend Overridable Function CreateDateRangeExpression(Of TDataObjectType)( _
   ByVal fieldName As String, _
   ByVal includeStartDate As Date, _
   ByVal excludedEndDate As Date _
) As Expression(Of Func(Of TDataObject,Boolean))
protected internal virtual Expression<Func<TDataObject,bool>> CreateDateRangeExpression<TDataObjectType>( 
   string fieldName,
   DateTime includeStartDate,
   DateTime excludedEndDate
)

Parameters

fieldName
The property that will be evaluated on.
includeStartDate
excludedEndDate

Type Parameters

TDataObjectType
The object type that the System.Linq.Expressions.Expression will be applied over.

Return Value

An System.Linq.Expressions.Expression which will evaluate for the condition.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also