C# 클래스 Azavea.Open.DAO.SQL.SqlClauseWithValue

Many SQL clauses look something like this: "(colName > 5)". However, on some DBs, that same clause may actually look like this: "LT_OR_EQ(5, colName)". To make things more complicated, you may want to not put 5 in the string, but use a parameter instead. So this allows you to represent it, in the first case PartBeforeValue would be "(colName > " and PartAfterValue would be ")", and in the second case PartBeforeValue would be "LT_OR_EQ(" and PartAfterValue would be ", colName)".
파일 보기 프로젝트 열기: azavea/net-dao

공개 프로퍼티들

프로퍼티 타입 설명
PartAfterValue string
PartBeforeValue string

공개 메소드들

메소드 설명
Clear ( ) : void

Sets both parts back to null.

SqlClauseWithValue ( )

Create a blank clause.

SqlClauseWithValue ( string before, string after )

Create a clause by specifying the before and after parts.

메소드 상세

Clear() 공개 메소드

Sets both parts back to null.
public Clear ( ) : void
리턴 void

SqlClauseWithValue() 공개 메소드

Create a blank clause.
public SqlClauseWithValue ( )

SqlClauseWithValue() 공개 메소드

Create a clause by specifying the before and after parts.
public SqlClauseWithValue ( string before, string after )
before string The part of the clause that comes before the value.
after string The part of the clause that comes after the value.

프로퍼티 상세

PartAfterValue 공개적으로 프로퍼티

The part of the clause that comes after the value. May be null.
public string PartAfterValue
리턴 string

PartBeforeValue 공개적으로 프로퍼티

The part of the clause that comes before the value. May be null.
public string PartBeforeValue
리턴 string