PostgreSQL和C#数据类型

PostgreSQL和C#数据类型,第1张

概述我在PostgreSQL和C#之间搜索类型转换表,但我找不到任何东西。 如果我有时间,我将研究上表的空单元格。 但如果你知道网页有这些信息,我非常适合你的帮助。 Postgre Type --->C# Typebigint --->Int64bigserial --->bit [ (n) ] --->Byte[]bit varying [ (n) ] --->Byteboole 我在Postgresql和C#之间搜索类型转换表,但我找不到任何东西。
如果我有时间,我将研究上表的空单元格。
但如果你知道网页有这些信息,我非常适合你的帮助。
Postgre Type --->C# Typebigint --->Int64bigserial --->bit [ (n) ] --->Byte[]bit varying [ (n) ] --->Byteboolean --->BooleanBox --->bytea --->Byte[]character varying [ (n) ] ---> Stringcharacter --->StringcIDrcircle date --->DateTimedouble precision --->Doubleinetinteger --->Int32interval [ (p) ] --->TimeSpanline lseg macaddrmoneynumeric [ (p,s) ] --->Decimaldecimal [ (p,s) ] --->Decimalpath  point polygon real --->Singlesmallint --->Int16serial text --->Stringtime [ (p) ] [ without time zone ] --->time [ (p) ] with time zone --->timestamp [ (p) ] [ without time zone ] --->timestamp [ (p) ] with time zone --->tsquery tsvector txID_snapshotuuID --->GuIDxml
也许你可以找到通过文档查找的东西
Npgsql,它是一个用于Postgresql的.NET数据提供程序的实现。

This page of the documentation实际上包含一个完整的表,你正在寻找什么。搜索“4.当前Npgsql状态” – “支持的数据类型”。有一个很好的表与所有Postgresql数据类型和他们的通讯员在.NET。

Postgresql  NpgsqlDbType System.DbType Enum .Net System Type----------  ------------ ------------------ ----------------int8        Bigint       Int64              Int64bool        Boolean      Boolean            Booleanbytea       Bytea        Binary             Byte[]date        Date         Date               DateTimefloat8      Double       Double             Doubleint4        Integer      Int32              Int32money       Money        Decimal            Decimalnumeric     Numeric      Decimal            Decimalfloat4      Real         Single             Singleint2        Smallint     Int16              Int16text        Text         String             Stringtime        Time         Time               DateTimetimetz      Time         Time               DateTimetimestamp   Timestamp    DateTime           DateTimetimestamptz TimestampTZ  DateTime           DateTimeinterval    Interval     Object             TimeSpanvarchar     Varchar      String             Stringinet        Inet         Object             IPAddressbit         Bit          Boolean            BooleanuuID        UuID         GuID               GuIDarray       Array        Object             Array
总结

以上是内存溢出为你收集整理的PostgreSQL和C#数据类型全部内容,希望文章能够帮你解决PostgreSQL和C#数据类型所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/sjk/1171919.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-06-02
下一篇2022-06-02

发表评论

登录后才能评论

评论列表(0条)

    保存