Click here to Skip to main content
15,890,186 members
Home / Discussions / C#
   

C#

 
GeneralRe: Why *does* this work, and when will it *not* work? (Two-way MSMQ messaging using WCF) Pin
Furty25-Oct-08 21:32
Furty25-Oct-08 21:32 
GeneralRe: Why *does* this work, and when will it *not* work? (Two-way MSMQ messaging using WCF) Pin
Meer Osman Ali25-Oct-08 21:50
Meer Osman Ali25-Oct-08 21:50 
GeneralRe: Why *does* this work, and when will it *not* work? (Two-way MSMQ messaging using WCF) Pin
Pete O'Hanlon26-Oct-08 10:04
mvePete O'Hanlon26-Oct-08 10:04 
GeneralRe: Why *does* this work, and when will it *not* work? (Two-way MSMQ messaging using WCF) Pin
Luc Pattyn26-Oct-08 10:42
sitebuilderLuc Pattyn26-Oct-08 10:42 
GeneralRe: Why *does* this work, and when will it *not* work? (Two-way MSMQ messaging using WCF) Pin
Pete O'Hanlon26-Oct-08 10:47
mvePete O'Hanlon26-Oct-08 10:47 
GeneralRe: Why *does* this work, and when will it *not* work? (Two-way MSMQ messaging using WCF) Pin
Dave Kreskowiak26-Oct-08 3:44
mveDave Kreskowiak26-Oct-08 3:44 
GeneralRe: Why *does* this work, and when will it *not* work? (Two-way MSMQ messaging using WCF) PinPopular
Eddy Vluggen26-Oct-08 0:31
professionalEddy Vluggen26-Oct-08 0:31 
Questionload xsd into dataset Pin
cheq32625-Oct-08 10:14
cheq32625-Oct-08 10:14 
I created a xsd file using a xml, and then loaded it into a dataset. It created several tables according to the xsd. I notice that each table has a auto-generated column (name ends with ..._id, it looks like the dataset uses these ids to determine the relations between each table).
the problem I am having is that when I fill each table in the dataset with data, then write it out to a xml file, the xml file does not come out in the format defined by xsd, e.g. the child element becomes sibling elment of the parent element
defined in xsd
<parentelement>
<firstelement></firstelement>
</parentelement>

output xml file will become
<parentelement>
</parentelement>
<firstelement>
</firstelement>

When I debug it, I find out that the reason is that in dataset, the auto-generated "parentElement" table's id(key) column is updated automatically(0,1,2...), but the "childElement" table's id column is still empty, therefore cause the two table not to "link" to each other(I found out that by adding child table's id column with 0,1,2.., the xml will come out in the correct format).
I use
adp.fill(ds, "parentElement") and adp.fill(ds, "firstElement") to fill both table, can't figure out why only the parent table's id column is auto-populated not the child one.
Please experts help!!
AnswerRe: load xsd into dataset Pin
Mircea Puiu26-Oct-08 8:21
Mircea Puiu26-Oct-08 8:21 
Questionhow transmit array elements to a table of database at once Pin
mahraja25-Oct-08 8:30
mahraja25-Oct-08 8:30 
AnswerRe: how transmit array elements to a table of database at once Pin
Eddy Vluggen25-Oct-08 8:38
professionalEddy Vluggen25-Oct-08 8:38 
AnswerRe: how transmit array elements to a table of database at once Pin
Wendelius25-Oct-08 8:57
mentorWendelius25-Oct-08 8:57 
QuestionRe: how transmit array elements to a table of database at once Pin
mahraja25-Oct-08 9:13
mahraja25-Oct-08 9:13 
AnswerRe: how transmit array elements to a table of database at once Pin
Wendelius25-Oct-08 9:29
mentorWendelius25-Oct-08 9:29 
QuestionGlobal objects in line with guidelines of OOP? Pin
Zeddan25-Oct-08 7:38
Zeddan25-Oct-08 7:38 
AnswerRe: Global objects in line with guidelines of OOP? Pin
elektrowolf25-Oct-08 23:18
elektrowolf25-Oct-08 23:18 
AnswerRe: Global objects in line with guidelines of OOP? Pin
Urs Enzler26-Oct-08 6:39
Urs Enzler26-Oct-08 6:39 
AnswerRe: Global objects in line with guidelines of OOP? Pin
Alan Balkany27-Oct-08 3:51
Alan Balkany27-Oct-08 3:51 
QuestionSorting Lists Pin
Jammer25-Oct-08 6:02
Jammer25-Oct-08 6:02 
AnswerRe: Sorting Lists Pin
Wendelius25-Oct-08 6:08
mentorWendelius25-Oct-08 6:08 
QuestionPlzzzzzzzz Help me Pin
maliaslam25-Oct-08 5:59
maliaslam25-Oct-08 5:59 
AnswerRe: Plzzzzzzzz Help me Pin
Wendelius25-Oct-08 6:10
mentorWendelius25-Oct-08 6:10 
GeneralRe: Plzzzzzzzz Help me Pin
PIEBALDconsult25-Oct-08 6:21
mvePIEBALDconsult25-Oct-08 6:21 
JokeRe: Plzzzzzzzz Help me Pin
Wendelius25-Oct-08 6:24
mentorWendelius25-Oct-08 6:24 
GeneralRe: Plzzzzzzzz Help me Pin
elektrowolf25-Oct-08 23:21
elektrowolf25-Oct-08 23:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.