我在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) ] …
Run Code Online (Sandbox Code Playgroud)