38
PostgreSQLとC#の間で型変換テーブルを検索しましたが、何も見つかりませんでした。 時間があれば上記の表の空のセルを調べます。 しかし、あなたがこれらの情報を持っているウェブページを知っているなら、私はあなたの助けに非常に適しています。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
大変ありがとうございました。 それはちょうど私が欲しいものです! – Higty
あなたはようこそ! – splattne
これが期限切れかどうかわかりませんが、DateTimeオブジェクトをPostgreSQLの「時刻」タイプに変換する際に問題が発生しました。 http://stackoverflow.com/questions/6129558/nhibernate-postgresql-datetime-to-time-conversion/6138382 PostgreSQLの時間オブジェクトとして保存するには、TimeSpanオブジェクトを使用する必要がありました。 –