欢迎光临散文网 会员登陆 & 注册

数据库中字段类型对应的C#中的数据类型

2022-10-20 17:06 作者:千岛寒流-日本暖流  | 我要投稿

数据库中字段类型对应C#中的数据类型:

数据库                 C#程序
int         int32
text        string
bigint        int64
binary       System.Byte[]
bit         Boolean
char        string
datetime      System.DateTime
decimal       System.Decimal
float         System.Double
image        System.Byte[]
money         System.Decimal
nchar         String
ntext         String
numeric        System.Decimal
nvarchar        String
real          System.Single
smalldatetime     System.DateTime
smallint        Int16
smallmoney      System.Decimal
timestamp       System.DateTime
tinyint         System.Byte
uniqueidentifier    System.Guid
varbinary       System.Byte[]
varchar        String
Variant        Object


数据库中字段类型对应的C#中的数据类型的评论 (共 条)

分享到微博请遵守国家法律