PgDateTimeParts
Namespace: Ankus
Assembly: Ankus.Runtime.dll
Gives PostgreSQL’s spelling of date and time field names.
public static class PgDateTimePartsInheritance: object
Methods
Section titled “Methods”ToPostgresName(PgDateTimePart)
Section titled “ToPostgresName(PgDateTimePart)”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.