Show / Hide Table of Contents

Class PostgreSqlCommandFormatProvider

Provides an implementation of a command format provider for PostgreSql databases.

Inheritance
System.Object
PostgreSqlCommandFormatProvider
Implements
ICommandFormatProvider
Namespace: Paradigm.ORM.Data.PostgreSql.CommandBuilders
Assembly: Paradigm.ORM.Data.PostgreSql.dll
Syntax
public class PostgreSqlCommandFormatProvider : object, ICommandFormatProvider

Methods

| Improve this Doc View Source

GetColumnValue(Object, String)

Gets the column value already formatted with the proper characters.

Declaration
public 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
public 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
public 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
public 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
public string GetQuerySeparator()
Returns
Type Description
System.String

The database query separator, normally ';'.

Implements

ICommandFormatProvider

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)

See Also

ICommandFormatProvider
  • Improve this Doc
  • View Source
Powered by MiracleDevs ©2017. Code licensed under the MIT License.
Documentation generated by DocFX.