RingSoft.DbLookup Namespace
RingSoft.DbLookup.Controls.WPF.Properties Namespace
RingSoft.DbMaintenance Namespace

GblMethods..::..ApplyOrder<(Of <(<'TEntity>)>)> Method

Applies the order.

Namespace:  RingSoft.DbLookup
Assembly:  RingSoft.DbLookup (in RingSoft.DbLookup.dll)

Syntax


public static IQueryable<TEntity> ApplyOrder<TEntity>(
	IQueryable<TEntity> source,
	OrderMethods methodType,
	string property
)
Public Shared Function ApplyOrder(Of TEntity) ( _
	source As IQueryable(Of TEntity), _
	methodType As OrderMethods, _
	property As String _
) As IQueryable(Of TEntity)
public:
generic<typename TEntity>
static IQueryable<TEntity>^ ApplyOrder(
	IQueryable<TEntity>^ source, 
	OrderMethods^ methodType, 
	String^ property
)

Type Parameters

TEntity
The type of the t entity.

Parameters

source
Type: IQueryable<(Of <(<'TEntity>)>)>
The source.
methodType
Type: RingSoft.DbLookup..::..OrderMethods
Type of the method.
property
Type: String
The property.

Return Value

IQueryable<TEntity>.

Exceptions


ExceptionCondition
ArgumentOutOfRangeExceptionmethodType - null
ArgumentNullExceptionsource