C# Class Habanero.Base.FunctionQueryField

Abstract base class for Function Query Fields. The idea is that derivatives need to do as little of the heavy lifting as possible
Inheritance: QueryField, ISelfFormattingField
Show file Open project: Chillisoft/habanero

Protected Properties

Property Type Description
_functionName string
_parameters object[]

Public Methods

Method Description
FunctionQueryField ( string functionName ) : System

Abstract constructor: you should only be interested if you're deriving from this class

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

Private Methods

Method Description
AddParametersTo ( List parts, ISqlFormatter formatter, string>.IDictionary aliases ) : void
AddQueryFieldParameter ( object parameter, List parts, ISqlFormatter formatter, string>.IDictionary aliases ) : bool
AddStringParameter ( object parameter, List parts, ISqlFormatter formatter ) : bool
GetFieldNameFrom ( object parameters ) : string
GetPropertyNameFor ( string functionName ) : string
QuoteSource ( Source source, ISqlFormatter withFormatter, string>.IDictionary aliases ) : string

Method Details

FunctionQueryField() public method

Abstract constructor: you should only be interested if you're deriving from this class
Will throw argument exception if the function name is not supplied
public FunctionQueryField ( string functionName ) : System
functionName string Name of the function to call in the output SQL
return System

GetFormattedStringWith() public method

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

Property Details

_functionName protected property

protected string _functionName
return string

_parameters protected property

protected object[] _parameters
return object[]