CommonCRUDServiceTEntity, TKey, TInput, TFilterSetColumnFilter Method

用指定属性及其值设置过滤条件。

Definition

Namespace: QuickAdmin.Service.CRUD
Assembly: QuickAdmin.Net (in QuickAdmin.Net.dll) Version: 2.0.13
C#
protected virtual ISelect<TEntity> SetColumnFilter(
	ISelect<TEntity> iSel,
	string propertyName,
	string propertyValue
)

Parameters

iSel  ISelectTEntity
ISelect 对象。
propertyName  string
属性名称。
propertyValue  string
表示属性值的字符串。可能以比较运算符打头,如 ">=10"

Return Value

ISelectTEntity
ISelect 对象。

Remarks

方法内调用了 ParseFilterItemValue(string, string, bool)(使用 AllowFilterValueStartsWithOperator 属性) 进行了解析, 若解析成功将追加一个对应的 where 条件;若解析失败,将追加一个不可能成立的条件:Where("1=2")

See Also