问题描述
我无法将oracle适配器的更新命令设置为Oracle
存储过程的名称。我的数据适配器是一个全局变量,我在多个函数中使用。
但是以下代码行
g_Da.UpdateCommand.CommandType = CommandType.StoredProcedur
生成此错误
System.NullReferenceException:对象引用未设置为对象的实例
是否有人知道为什么?有人能告诉我如何成功将我的
数据适配器的更新命令设置为我的存储过程
感谢您的帮助
Parveen
I am having trouble setting the update command of my oracle adapter to the name of an Oracle
stored procedure. My data adapter is a global variable that I use in multiple functions.
But the following line of code
g_Da.UpdateCommand.CommandType = CommandType.StoredProcedur
Generates this error
System.NullReferenceException: Object reference not set to an instance of an object
Does anyone know why? Can someone tell me how I can successful set the update command of my
data adapter to my stored procedure
Thanks for your help
Parveen
推荐答案
要么你没有创建DataAdapter ,或者你没有创建一个
UpdateCommand。
-
Armin
Either you didn''t create a DataAdapter, or you didn''t create an
UpdateCommand.
--
Armin
http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html
您确定已为UpdateCommand分配了一些内容吗? ''属性?
-
Herfried K. Wagner [MVP]
< http://www.mvps .org / dotnet>
Are you sure you assigned something to the ''UpdateCommand'' property?
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
你确定你已经为''UpdateCommand''
属性分配了一些内容吗?
Are you sure you assigned something to the ''UpdateCommand''
property?
是的,但它不起作用:
g_da.UpdateCommand = Something
-
Armin
"yes, but it does not work:"
g_da.UpdateCommand = Something
--
Armin
这篇关于更新Oracle数据集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!