Skip to content

PgDateTimeParts

Namespace: Ankus

Assembly: Ankus.Runtime.dll

Gives PostgreSQL’s spelling of date and time field names.

public static class PgDateTimeParts

Inheritance: object

Gets the field name PostgreSQL’s date_part, extract and date_trunc accept, such as isoyear or dow, for use as a SQL argument.

public static string ToPostgresName(this PgDateTimePart part)

Parameters:

part — PgDateTimePart

The field.

Returns: string

The lowercase PostgreSQL name.