PostgreSQL to C# Type Mapping - Zontroy

PostgreSQL to C# Type Mapping

PostgreSQL Data TypeC# Data TypeC# Nullable Data TypeC# Primitive Type
bigintInt64Nullable<Int64>long
bitBooleanNullable<Boolean>bool
booleanBooleanNullable<Boolean>bool
byteabyte[]byte[]
characterStringStringstring
character varyingStringStringstring
dateDateTimeNullable<DateTime>
double precisionSingleNullable<Single>float
integerInt32Nullable<Int32>int
moneyDecimalNullable<Decimal>decimal
numericDecimalNullable<Decimal>decimal
realSingleNullable<Single>float
serialInt32Nullable<Int32>int
smallintInt16Nullable<Int16>short
smallserialInt16Nullable<Int16>short
textStringStringstring
timeDateTimeNullable<DateTime>
timestampTimeStampNullable<TimeStamp>

Post a Comment