我在搜索 PostgreSQL 和 C# 之间的类型转换表,但是没有找到任何信息。 如果我有时间,我会研究上面表格中的空单元格。 但是如果您知道拥有这些信息的网页,我非常感谢您的帮助。
Postgre Type --->C# Type
bigint --->Int64
bigserial --->
bit [ (n) ] --->Byte[]
bit varying [ (n) ] --->Byte
boolean --->Boolean
box --->
bytea --->Byte[]
character varying [ (n) ] ---> String
character --->String
cidr
circle
date --->DateTime
double precision --->Double
inet
integer --->Int32
interval [ (p) ] --->TimeSpan
line
lseg
macaddr
money
numeric [ (p, s) ] --->Decimal
decimal [ (p, s) ] --->Decimal
path
point
polygon
real --->Single
smallint --->Int16
serial
text --->String
time [ (p) ] [ without time zone ] --->
time [ (p) ] with time zone --->
timestamp [ (p) ] [ without time zone ] --->
timestamp [ (p) ] with time zone --->
tsquery
tsvector
txid_snapshot
uuid --->Guid
xml