错误:命令文本属性未初始化 [英] Error: command text property not initialized

查看:97
本文介绍了错误:命令文本属性未初始化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello开发人员,



朋友我正在开发基于3层架构的Web应用程序,我们分别为BLL,DAL和Interface分别开展项目。我是当我将存储过程的名称传递给bll以从表中选择行时面对aproblem,命令文本不会拾取过程的名称,但它确实通过我初始化命令文本属性的函数但仍然是抛出异常命令属性noty not initialised。请帮助,

问候,

Gourav sharma

Hello developers,

Friends i am working on a web application based on 3 tier architecture where we have seperate projects for BLL,DAL and Interface respectively.I am facing aproblem while i pass the name of the stored procedure to the bll for selecting the rows from the table,The command text doesnot pickup the name of the procedure however it does go through the function where i have initialized the command text property but still it throws an exception command property noty not initialised.Please help,
Regards,
Gourav sharma

推荐答案

Set CommandText指向过程的名称,CommandType指向StoredProcedure。
Set the CommandText to name of the procedure and CommandType to StoredProcedure.


这篇关于错误:命令文本属性未初始化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆