问题描述
好的,我现在详细描述问题.
我有一个具有相关表的数据集,如下所示
< img src ="http://www.toyan.com.tr/download/image1.png"/>
"dt_bolumler"中的"ID"列是父表的主键,"bolumID"是子表的外键.
我尝试过的代码是:
mhs_sorubankasiDataSet.dt_sorular.Adddt_sorularRow(soru, sik1, sik2, sik3, sik4,bolumID,sayfaKitapNo,sik5);
"bolumID"是"int32"的类型.
当我尝试调试我的项目时,出现如下错误:
Ok I am now describing problem in details.
I have a dataset with related tables like below
<img src="http://www.toyan.com.tr/download/image1.png" />
"ID" column in "dt_bolumler" is the primary key of the parent table and "bolumID" is the foreign key of the child table.
the code that I tried is :
mhs_sorubankasiDataSet.dt_sorular.Adddt_sorularRow(soru, sik1, sik2, sik3, sik4,bolumID,sayfaKitapNo,sik5);
"bolumID" is the type of "int32".
when I try to debug my project a get an error like that:
My question is that: what is the meaning of the argument "Muhsimder_Soru_bankasi.mhs_sorubankasiDataSet.dt_bolumlerRow"?
I get the ID from "dt_bolumler" table and add it to "dt_sorular" table in the type of "int32" however error message told me that I have to add a "Muhsimder_Soru_bankasi.mhs_sorubankasiDataSet.dt_bolumlerRow" type of data for "bolumID".
How can I add "bolumID" to child table in the format of "Muhsimder_Soru_bankasi.mhs_sorubankasiDataSet.dt_bolumlerRow"?
这篇关于将数据添加到相关的数据集表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!