C# 클래스 Habanero.Base.QueryField

Represents a field used in a query. In a database context, this represents a field listed in the SELECT clause of a sql statement
상속: ISelfFormattingField
파일 보기 프로젝트 열기: Chillisoft/habanero 1 사용 예제들

공개 메소드들

메소드 설명
FromString ( string fieldString ) : QueryField

Creates a QueryField object by parsing a string in the correct format. The format is:

<queryField> => [<source>.]<fieldName>

<source> => [<source>.]<sourceName>

For example: Surname or ContactPerson.Company.Name

GetFormattedStringWith ( ISqlFormatter formatter, string>.IDictionary aliases ) : string

Gets the formatted string for this field to be used in queries

QueryField ( string propertyName, string fieldName, Source source ) : System

Creates a QueryField with the given property name, field name and source name

메소드 상세

FromString() 공개 정적인 메소드

Creates a QueryField object by parsing a string in the correct format. The format is:

<queryField> => [<source>.]<fieldName>

<source> => [<source>.]<sourceName>

For example: Surname or ContactPerson.Company.Name
public static FromString ( string fieldString ) : QueryField
fieldString string The string in the correct format (see above)
리턴 QueryField

GetFormattedStringWith() 공개 메소드

Gets the formatted string for this field to be used in queries
public GetFormattedStringWith ( ISqlFormatter formatter, string>.IDictionary aliases ) : string
formatter ISqlFormatter An ISqlFormatter to format with
aliases string>.IDictionary The dictionary of aliases within the context to be formatted for
리턴 string

QueryField() 공개 메소드

Creates a QueryField with the given property name, field name and source name
public QueryField ( string propertyName, string fieldName, Source source ) : System
propertyName string The name of the property (as defined in the ClassDef) that this QueryField is for
fieldName string The name of the field in the data source that this QueryField is for
source Source The source (such as a table) that this QueryField is from.
리턴 System