Show / Hide Table of Contents

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 Source

GetColumnValue(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

GetQuerySeparator()

Gets the query separator.

Declaration
string GetQuerySeparator()
Returns
Type Description
System.String

The database query separator, normally ';'.

Extension Methods

ObjectExtensions.ThrowIfFails<TException>(Object, Action, String)
ObjectExtensions.ThrowIfFails<TException, TResult>(Object, Func<TResult>, String)
ObjectExtensions.ThrowIfFailsAsync<TException>(Object, Func<Task>, String)
ObjectExtensions.ThrowIfFailsAsync<TException, TResult>(Object, Func<Task<TResult>>, String)
  • Improve this Doc
  • View Source
Powered by MiracleDevs ©2017. Code licensed under the MIT License.
Documentation generated by DocFX.