Interface ICommandFormatProvider
Provides an interface for a command format provider.
Namespace: Paradigm.ORM.Data.CommandBuilders
Assembly: Paradigm.ORM.Data.dll
Syntax
public interface ICommandFormatProvider
Remarks
The command format provider provides regular query formatting functions, that may change between different database implementations.
Methods
| Improve this Doc View SourceGetColumnValue(Object, String)
Gets the column value already formatted with the proper characters.
Declaration
string GetColumnValue(object value, string dataType)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value to format. |
System.String | dataType | The type of the value. |
Returns
Type | Description |
---|---|
System.String | Formatted value. |
GetColumnValue(Object, Type)
Gets the column value already formatted with the proper characters.
Declaration
string GetColumnValue(object value, Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value to format. |
Type | type | The type of the value. |
Returns
Type | Description |
---|---|
System.String | Formatted value. |
GetEscapedName(String)
Gets the name of an object (table, view, column, etc) escaped with the proper characters.
Declaration
string GetEscapedName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name to scape. |
Returns
Type | Description |
---|---|
System.String | Scaped name. |
GetParameterName(String)
Gets the name of the parameter already formatted for ado.
Declaration
string GetParameterName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name. |
Returns
Type | Description |
---|---|
System.String | A formatted representation of the name. |
GetQuerySeparator()
Gets the query separator.
Declaration
string GetQuerySeparator()
Returns
Type | Description |
---|---|
System.String | The database query separator, normally ';'. |