C# 클래스 DotNetNuke.Extensions.Data.Filter

상속: IFilter
파일 보기 프로젝트 열기: JonHaywood/DotNetNuke.Extensions 1 사용 예제들

공개 메소드들

메소드 설명
And ( ) : Filter
ContainsString ( string columnName, string subString ) : Filter
ContainsStringWithinCommaSeparatedValues ( string columnName, string csvValue ) : Filter
CreateEmpty ( ) : Filter

Gets an empty query.

EqualTo ( string columnName, object equalTo ) : Filter

Extends the Query (using the AND operator) such that only rows with values equal to that specified in the named column should be included.

Equals ( object obj ) : bool
Filter ( ) : System

Constructs a new, empty, query.

GetExpressionString ( ) : string

Returns the where clause without the leading 'Where' command. To access the statement with a where command, use ToString().

GetHashCode ( ) : int
GreaterThan ( string columnName, object greaterThan ) : Filter

Extends the Query (using the AND operator) such that only rows with values greater than that specified in the named column should be included.

GreaterThanOrEqualTo ( string columnName, object greaterThanOrEqualTo ) : Filter

Extends the Query (using the AND operator) such that only rows with values greater than or equal to that specified in the named column should be included.

IsNotNull ( string columnName ) : Filter
IsNull ( string columnName ) : Filter
LessThan ( string columnName, object lessThan ) : Filter

Extends the Query (using the AND operator) such that only rows with values less than that specified in the named column should be included.

LessThanOrEqualTo ( string columnName, object lessThanOrEqualTo ) : Filter

Extends the Query (using the AND operator) such that only rows with values less than or equal to that specified in the named column should be included.

Like ( string columnName, string likePattern ) : Filter

Performs wildcard string matching upon the specified column.

NotEqualTo ( string columnName, object notEqualTo ) : Filter

Extends the Query (using the AND operator) such that only rows with values not equal to that specified in the named column should be included.

Or ( ) : Filter

Adds the specified sub-query using the OR logical operator.

OrContainsString ( string columnName, string subString ) : Filter
OrContainsStringWithinCommaSeparatedValues ( string columnName, string csvValue ) : Filter
OrEqualTo ( string columnName, object equalTo ) : Filter
OrGreaterThan ( string columnName, object greaterThan ) : Filter
OrGreaterThanOrEqualTo ( string columnName, object greaterThanOrEqualTo ) : Filter
OrIsNotNull ( string columnName ) : Filter
OrIsNull ( string columnName ) : Filter
OrLessThan ( string columnName, object lessThan ) : Filter
OrLessThanOrEqualTo ( string columnName, object lessThanOrEqualTo ) : Filter
OrLike ( string columnName, string likePattern ) : Filter
OrNotEqualTo ( string columnName, object notEqualTo ) : Filter
OrStartsWithString ( string columnName, string prefix ) : Filter
StartsWithString ( string columnName, string prefix ) : Filter
ToString ( ) : string

Returns the query's expression as a SQL string, prefixed with the 'Where' command. For example, Where Column1='Value1'.

비공개 메소드들

메소드 설명
And ( ConditionNode newCondition ) : Filter
CreateContainsStringCondition ( string subString, string columnName ) : ConditionNode
CreateContainsStringWithinCommaSeparatedValuesCondition ( string columnName, string csvValue ) : ConditionNode
CreateEqualToCondition ( string columnName, object equalTo ) : ConditionNode
CreateGreaterThanCondition ( string columnName, object greaterThan ) : ConditionNode
CreateGreaterThanOrEqualToCondition ( string columnName, object greaterThanOrEqualTo ) : ConditionNode
CreateIsNotNullCondition ( string columnName ) : ConditionNode
CreateIsNullCondition ( string columnName ) : ConditionNode
CreateLessThanCondition ( string columnName, object lessThan ) : ConditionNode
CreateLessThanOrEqualToCondition ( string columnName, object lessThanOrEqualTo ) : ConditionNode
CreateLikeCondition ( string columnName, string likePattern ) : ConditionNode
CreateNotEqualToCondition ( string columnName, object notEqualTo ) : ConditionNode
CreateStartsWithStringCondition ( string prefix, string columnName ) : ConditionNode
MergeConditionIntoTree ( LogicalOperator desiredLogicalOperator, ConditionNode newCondition ) : void
Or ( ConditionNode newCondition ) : Filter

메소드 상세

And() 공개 메소드

public And ( ) : Filter
리턴 Filter

ContainsString() 공개 메소드

public ContainsString ( string columnName, string subString ) : Filter
columnName string
subString string
리턴 Filter

ContainsStringWithinCommaSeparatedValues() 공개 메소드

public ContainsStringWithinCommaSeparatedValues ( string columnName, string csvValue ) : Filter
columnName string
csvValue string
리턴 Filter

CreateEmpty() 공개 정적인 메소드

Gets an empty query.
public static CreateEmpty ( ) : Filter
리턴 Filter

EqualTo() 공개 메소드

Extends the Query (using the AND operator) such that only rows with values equal to that specified in the named column should be included.
public EqualTo ( string columnName, object equalTo ) : Filter
columnName string The column to filter within.
equalTo object
리턴 Filter

Equals() 공개 메소드

public Equals ( object obj ) : bool
obj object
리턴 bool

Filter() 공개 메소드

Constructs a new, empty, query.
public Filter ( ) : System
리턴 System

GetExpressionString() 공개 메소드

Returns the where clause without the leading 'Where' command. To access the statement with a where command, use ToString().
public GetExpressionString ( ) : string
리턴 string

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

GreaterThan() 공개 메소드

Extends the Query (using the AND operator) such that only rows with values greater than that specified in the named column should be included.
public GreaterThan ( string columnName, object greaterThan ) : Filter
columnName string The column to filter within.
greaterThan object
리턴 Filter

GreaterThanOrEqualTo() 공개 메소드

Extends the Query (using the AND operator) such that only rows with values greater than or equal to that specified in the named column should be included.
public GreaterThanOrEqualTo ( string columnName, object greaterThanOrEqualTo ) : Filter
columnName string The column to filter within.
greaterThanOrEqualTo object
리턴 Filter

IsNotNull() 공개 메소드

public IsNotNull ( string columnName ) : Filter
columnName string
리턴 Filter

IsNull() 공개 메소드

public IsNull ( string columnName ) : Filter
columnName string
리턴 Filter

LessThan() 공개 메소드

Extends the Query (using the AND operator) such that only rows with values less than that specified in the named column should be included.
public LessThan ( string columnName, object lessThan ) : Filter
columnName string The column to filter within.
lessThan object The value that remaining rows must be less than.
리턴 Filter

LessThanOrEqualTo() 공개 메소드

Extends the Query (using the AND operator) such that only rows with values less than or equal to that specified in the named column should be included.
public LessThanOrEqualTo ( string columnName, object lessThanOrEqualTo ) : Filter
columnName string The column to filter within.
lessThanOrEqualTo object The value that remaining rows must be less than or equal to.
리턴 Filter

Like() 공개 메소드

Performs wildcard string matching upon the specified column.
public Like ( string columnName, string likePattern ) : Filter
columnName string The column to match within.
likePattern string The wildcard expression. Patterns commonly use the % symbol as a wildcard.
리턴 Filter

NotEqualTo() 공개 메소드

Extends the Query (using the AND operator) such that only rows with values not equal to that specified in the named column should be included.
public NotEqualTo ( string columnName, object notEqualTo ) : Filter
columnName string The column to filter within.
notEqualTo object
리턴 Filter

Or() 공개 메소드

Adds the specified sub-query using the OR logical operator.
public Or ( ) : Filter
리턴 Filter

OrContainsString() 공개 메소드

public OrContainsString ( string columnName, string subString ) : Filter
columnName string
subString string
리턴 Filter

OrContainsStringWithinCommaSeparatedValues() 공개 메소드

public OrContainsStringWithinCommaSeparatedValues ( string columnName, string csvValue ) : Filter
columnName string
csvValue string
리턴 Filter

OrEqualTo() 공개 메소드

public OrEqualTo ( string columnName, object equalTo ) : Filter
columnName string
equalTo object
리턴 Filter

OrGreaterThan() 공개 메소드

public OrGreaterThan ( string columnName, object greaterThan ) : Filter
columnName string
greaterThan object
리턴 Filter

OrGreaterThanOrEqualTo() 공개 메소드

public OrGreaterThanOrEqualTo ( string columnName, object greaterThanOrEqualTo ) : Filter
columnName string
greaterThanOrEqualTo object
리턴 Filter

OrIsNotNull() 공개 메소드

public OrIsNotNull ( string columnName ) : Filter
columnName string
리턴 Filter

OrIsNull() 공개 메소드

public OrIsNull ( string columnName ) : Filter
columnName string
리턴 Filter

OrLessThan() 공개 메소드

public OrLessThan ( string columnName, object lessThan ) : Filter
columnName string
lessThan object
리턴 Filter

OrLessThanOrEqualTo() 공개 메소드

public OrLessThanOrEqualTo ( string columnName, object lessThanOrEqualTo ) : Filter
columnName string
lessThanOrEqualTo object
리턴 Filter

OrLike() 공개 메소드

public OrLike ( string columnName, string likePattern ) : Filter
columnName string
likePattern string
리턴 Filter

OrNotEqualTo() 공개 메소드

public OrNotEqualTo ( string columnName, object notEqualTo ) : Filter
columnName string
notEqualTo object
리턴 Filter

OrStartsWithString() 공개 메소드

public OrStartsWithString ( string columnName, string prefix ) : Filter
columnName string
prefix string
리턴 Filter

StartsWithString() 공개 메소드

public StartsWithString ( string columnName, string prefix ) : Filter
columnName string
prefix string
리턴 Filter

ToString() 공개 메소드

Returns the query's expression as a SQL string, prefixed with the 'Where' command. For example, Where Column1='Value1'.
public ToString ( ) : string
리턴 string