Enum NpgsqlDbType
- Namespace
- NpgsqlTypes
- Assembly
- Npgsql.dll
Represents a PostgreSQL data type that can be written or read to the database. Used in places such as NpgsqlDbType to unambiguously specify how to encode or decode values.
public enum NpgsqlDbType
Fields
[Obsolete("The PostgreSQL abstime time is obsolete.")] Abstime = 33Corresponds to the obsolete PostgreSQL "abstime" type.
Array = -2147483648Corresponds to the PostgreSQL "array" type, a variable-length multidimensional array of another type. This value must be combined with another value from NpgsqlDbType via a bit OR (e.g. NpgsqlDbType.Array | NpgsqlDbType.Integer)
BigIntMultirange = 536870913Corresponds to the PostgreSQL "int8multirange" type.
BigIntRange = 1073741825Corresponds to the PostgreSQL "int8range" type.
Bigint = 1Corresponds to the PostgreSQL 8-byte "bigint" type.
Bit = 25Corresponds to the PostgreSQL "bit" type.
Boolean = 2Corresponds to the PostgreSQL "boolean" type.
Box = 3Corresponds to the PostgreSQL geometric "box" type.
Bytea = 4Corresponds to the PostgreSQL "bytea" type, holding a raw byte string.
Char = 6Corresponds to the PostgreSQL "char(n)" type.
Cid = 43Corresponds to the PostgreSQL "cid" type, an internal command identifier.
Cidr = 44Corresponds to the PostgreSQL "cidr" type, a field storing an IPv4 or IPv6 network.
Circle = 5Corresponds to the PostgreSQL geometric "circle" type.
Citext = 51Corresponds to the PostgreSQL "citext" type for the citext module.
Date = 7Corresponds to the PostgreSQL "date" type.
DateMultirange = 536870919Corresponds to the PostgreSQL "datemultirange" type.
DateRange = 1073741831Corresponds to the PostgreSQL "daterange" type.
Double = 8Corresponds to the PostgreSQL 8-byte floating-point "double" type.
Geography = 55The geography (geodetic) type for PostgreSQL spatial extension PostGIS.
Geometry = 50The geometry type for PostgreSQL spatial extension PostGIS.
Hstore = 37Corresponds to the PostgreSQL "hstore" type, a dictionary of string key-value pairs.
Inet = 24Corresponds to the PostgreSQL "inet" type.
Int2Vector = 52Corresponds to the PostgreSQL internal "int2vector" type.
Integer = 9Corresponds to the PostgreSQL 4-byte "integer" type.
IntegerMultirange = 536870921Corresponds to the PostgreSQL "int4multirange" type.
IntegerRange = 1073741833Corresponds to the PostgreSQL "int4range" type.
InternalChar = 38Corresponds to the PostgreSQL "char" type.
Interval = 30Corresponds to the PostgreSQL "interval" type.
Json = 35Corresponds to the PostgreSQL "json" type, a field storing JSON in text format.
JsonPath = 57Corresponds to the PostgreSQL "jsonpath" type, a field storing JSON path in text format. format.
Jsonb = 36Corresponds to the PostgreSQL "jsonb" type, a field storing JSON in an optimized binary. format.
LQuery = 61The PostgreSQL lquery type for PostgreSQL extension ltree
LSeg = 11Corresponds to the PostgreSQL geometric "lseg" type.
LTree = 60The PostgreSQL ltree type, each value is a label path "a.label.tree.value", forming a tree in a set.
LTxtQuery = 62The PostgreSQL ltxtquery type for PostgreSQL extension ltree
Line = 10Corresponds to the PostgreSQL geometric "line" type.
MacAddr = 34Corresponds to the PostgreSQL "macaddr" type, a field storing a 6-byte physical address.
MacAddr8 = 54Corresponds to the PostgreSQL "macaddr8" type, a field storing a 6-byte or 8-byte physical address.
Money = 12Corresponds to the PostgreSQL "money" type.
Multirange = 536870912Corresponds to the PostgreSQL "multirange" type, continuous range of values of specific type. This value must be combined with another value from NpgsqlDbType via a bit OR (e.g. NpgsqlDbType.Multirange | NpgsqlDbType.Integer)
Name = 32Corresponds to the PostgreSQL internal "name" type.
Numeric = 13Corresponds to the PostgreSQL arbitrary-precision "numeric" type.
NumericMultirange = 536870925Corresponds to the PostgreSQL "nummultirange" type.
NumericRange = 1073741837Corresponds to the PostgreSQL "numrange" type.
Oid = 41Corresponds to the PostgreSQL "oid" type.
Oidvector = 29Corresponds to the PostgreSQL internal "oidvector" type.
Path = 14Corresponds to the PostgreSQL geometric "path" type.
PgLsn = 59Corresponds to the PostgreSQL "pg_lsn" type, which can be used to store LSN (Log Sequence Number) data which is a pointer to a location in the WAL.
Point = 15Corresponds to the PostgreSQL geometric "point" type.
Polygon = 16Corresponds to the PostgreSQL geometric "polygon" type.
Range = 1073741824Corresponds to the PostgreSQL "range" type, continuous range of values of specific type. This value must be combined with another value from NpgsqlDbType via a bit OR (e.g. NpgsqlDbType.Range | NpgsqlDbType.Integer)
Real = 17Corresponds to the PostgreSQL floating-point "real" type.
Refcursor = 23Corresponds to the PostgreSQL "refcursor" type.
Regconfig = 56Corresponds to the PostgreSQL "regconfig" type.
Regtype = 49Corresponds to the PostgreSQL "regtype" type, a numeric (OID) ID of a type in the pg_type table.
Smallint = 18Corresponds to the PostgreSQL 2-byte "smallint" type.
Text = 19Corresponds to the PostgreSQL "text" type.
Tid = 53Corresponds to the PostgreSQL "tid" type, a tuple id identifying the physical location of a row within its table.
Time = 20Corresponds to the PostgreSQL "time" type.
TimeTz = 31Corresponds to the PostgreSQL "time with time zone" type.
Timestamp = 21Corresponds to the PostgreSQL "timestamp" type.
TimestampMultirange = 536870933Corresponds to the PostgreSQL "tsmultirange" type.
TimestampRange = 1073741845Corresponds to the PostgreSQL "tsrange" type.
TimestampTz = 26Corresponds to the PostgreSQL "timestamp with time zone" type.
TimestampTzMultirange = 536870938Corresponds to the PostgreSQL "tstzmultirange" type.
TimestampTzRange = 1073741850Corresponds to the PostgreSQL "tstzrange" type.
TsQuery = 46Corresponds to the PostgreSQL "tsquery" type.
TsVector = 45Corresponds to the PostgreSQL "tsvector" type.
Unknown = 40A special value that can be used to send parameter values to the database without specifying their type, allowing the database to cast them to another value based on context. The value will be converted to a string and send as text.
Uuid = 27Corresponds to the PostgreSQL "uuid" type.
Varbit = 39Corresponds to the PostgreSQL "varbit" type, a field storing a variable-length string of bits.
Varchar = 22Corresponds to the PostgreSQL "varchar" type.
Xid = 42Corresponds to the PostgreSQL "xid" type, an internal transaction identifier.
Xid8 = 64Corresponds to the PostgreSQL "xid8" type, an internal transaction identifier.
Xml = 28Corresponds to the PostgreSQL "xml" type.