惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 三生石上(FineUI控件)
G
Google Developers Blog
Vercel News
Vercel News
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
N
Netflix TechBlog - Medium
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Engineering at Meta
Engineering at Meta
B
Blog
博客园_首页
量子位
博客园 - 叶小钗
L
LangChain Blog
T
The Blog of Author Tim Ferriss
云风的 BLOG
云风的 BLOG
Blog — PlanetScale
Blog — PlanetScale
F
Fortinet All Blogs
S
SegmentFault 最新的问题
宝玉的分享
宝玉的分享
D
DataBreaches.Net
雷峰网
雷峰网
The Cloudflare Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Last Week in AI
Last Week in AI
P
Proofpoint News Feed
TaoSecurity Blog
TaoSecurity Blog
罗磊的独立博客
MongoDB | Blog
MongoDB | Blog
The GitHub Blog
The GitHub Blog
I
Intezer
H
Help Net Security
The Hacker News
The Hacker News
The Register - Security
The Register - Security
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
AWS News Blog
AWS News Blog
V
V2EX
Microsoft Security Blog
Microsoft Security Blog
T
Tenable Blog
Spread Privacy
Spread Privacy
A
Arctic Wolf
P
Proofpoint News Feed
T
Threat Research - Cisco Blogs
Schneier on Security
Schneier on Security
C
CERT Recently Published Vulnerability Notes
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The Last Watchdog
The Last Watchdog
Latest news
Latest news
T
Troy Hunt's Blog
L
LINUX DO - 热门话题

博客园 - 超晨

jacob的使用方法 飞秋软件的OA消息接口服务器 vs2010 sp1在win2003不能安装的问题 jquery插件Uploadify使用中的注意事项 adsl拨号vpn后,adsl就不能用了 - 超晨 坑爹啊!!!win2003 x64企业版不支持tfs2010的源代码管理服务 mysql真是不错! gui设计禁忌2.0读书笔记 tfs2010中文版下载 iisExpress的设置 vs08+ie8开发遇到的问题 sql命令行添加一个登陆给某数据库,并给予指定角色(备忘) 消除数据库JS入侵的脚本 数据绑定到分页的快速开发最佳实践 SQL冗余字段的策略和管理 dataset绑定翻页和泛型+实体类绑定翻页的性能比较 Windows 远程桌面不能连接解决办法zt Python企业应用的优缺点(zt) python应用领域介绍 (zt)
c#关于数据库自定义类型在存储过程中返回服务器端的问题
超晨 · 2013-04-11 · via 博客园 - 超晨

如果用的sqldbtype,没问题,可以定义

但如果用的dbtype,那么用DbType.Object来定义类型是错误的。

例如:

    erpdb.AddInParameter(cmd, "@tb",DbType.Object, table); //错误

正确做法是构造para,不指定dbtype!

 DbParameter para = cmd.CreateParameter();
                    para.ParameterName = "@tb";
                    para.Value = table;
                    cmd.Parameters.Add(para);