MsSQL
发布时间:2022-05-16 发布网站:大佬教程 code.js-code.com
大佬教程收集整理的这篇文章主要介绍了SqlServer与C#中数据类型的对应关系,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
private
String changetocsharptype(
String typ
E) { String reval=
String.empty; switch(type.tolower())
{ case "int": reval= "int32"; break; case "text": reval= "
String"; break; case "bigint": reval= "int64"; break; case "binary": reval= "system
.byte[]"; break; case "bit": reval= "
Boolean"; break; case "char": reval= "
String"; break; case "
datetiR_850_11845@e": reval= "syste
m.datetiR_850_11845@e"; break; case "
decimal": reval= "syste
m.decimal"; break; case "float": reval= "syste
m.double"; break; case "image": reval= "system
.byte[]"; break; case "money": reval= "syste
m.decimal"; break; case "nchar": reval= "
String"; break; case "
ntext": reval= "
String"; break; case "numeric": reval= "syste
m.decimal"; break; case "nvarchar": reval= "
String"; break; case "real": reval= "syste
m.single"; break; case "
small
datetiR_850_11845@e": reval= "syste
m.datetiR_850_11845@e"; break; case "
smallint": reval= "int16"; break; case "
smallmoney": reval= "syste
m.decimal"; break; case "
timestamp": reval= "syste
m.datetiR_850_11845@e"; break; case "
Tinyint": reval= "system
.byte"; break; case "uniqu
EIDentifier": reval= "syste
m.guid"; break; case "varbinary": reval= "system
.byte[]"; break; case "varchar": reval= "
String"; break; case "variant": reval="ob
ject"; break; default: reval= "
String"; break; } return reval; }
大佬总结
以上是大佬教程为你收集整理的SqlServer与C#中数据类型的对应关系全部内容,希望文章能够帮你解决SqlServer与C#中数据类型的对应关系所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。