C# 클래스 Habanero.Base.CriteriaDB

This class inherits from the Criteria class and implements a ToString(Habanero.Base.ISqlFormatter,Habanero.Base.CriteriaDB.AddParameterDelegate,System.Collections.Generic.IDictionary{string,string}) behaviour. This allows the formatting of a criteria object into a format specific for the database.
상속: Criteria
파일 보기 프로젝트 열기: Chillisoft/habanero 1 사용 예제들

공개 메소드들

메소드 설명
CriteriaDB ( Criteria criteria ) : System

Constructor for a Database critieria. takes the Criteria object that it wraps as a parameter.

ToString ( ) : string

Returns a that represents the current .

ToString ( ISqlFormatter formatter, AddParameterDelegate addParameter ) : string

Converts this Criteria to a string for use in a sql statement.

ToString ( ISqlFormatter formatter, AddParameterDelegate addParameter, string>.IDictionary aliases ) : string

Converts this Criteria object to a string, using field names instead of property names and entity names (aliased) instead of source names. The AddParameterDelegate allows a database query builder to create a parameter value when adding the value to the string for use with parametrized SQL. Also see ISqlStatement. The ToString() method uses this method with a simple delegate that converts DateTimes and Guids to sensible string representations and to Provide a set of aliases to replace entity names with their aliases.

메소드 상세

CriteriaDB() 공개 메소드

Constructor for a Database critieria. takes the Criteria object that it wraps as a parameter.
public CriteriaDB ( Criteria criteria ) : System
criteria Criteria The criteria object being wrapped.
리턴 System

ToString() 공개 메소드

Returns a that represents the current .
public ToString ( ) : string
리턴 string

ToString() 공개 메소드

Converts this Criteria to a string for use in a sql statement.
public ToString ( ISqlFormatter formatter, AddParameterDelegate addParameter ) : string
formatter ISqlFormatter The formatter to use
addParameter AddParameterDelegate A delegate defining how to add a parameter to the string.
리턴 string

ToString() 공개 메소드

Converts this Criteria object to a string, using field names instead of property names and entity names (aliased) instead of source names. The AddParameterDelegate allows a database query builder to create a parameter value when adding the value to the string for use with parametrized SQL. Also see ISqlStatement. The ToString() method uses this method with a simple delegate that converts DateTimes and Guids to sensible string representations and to Provide a set of aliases to replace entity names with their aliases.
public ToString ( ISqlFormatter formatter, AddParameterDelegate addParameter, string>.IDictionary aliases ) : string
formatter ISqlFormatter A formatter for any specific database
addParameter AddParameterDelegate The delegate to use to convert the value in object form to a value in string form. /// See
aliases string>.IDictionary The mapping of aliases to use
리턴 string