Click here to Skip to main content
15,911,030 members
Home / Discussions / C#
   

C#

 
QuestionFtpClientConnection Pin
toink toink18-Oct-06 0:43
toink toink18-Oct-06 0:43 
QuestionChanging settings of an installed windows service. Pin
kulile18-Oct-06 0:33
kulile18-Oct-06 0:33 
QuestionInserting into a multiple Datasets with 1 method Pin
Gareth H17-Oct-06 23:49
Gareth H17-Oct-06 23:49 
AnswerRe: Inserting into a multiple Datasets with 1 method Pin
Robert Rohde18-Oct-06 0:10
Robert Rohde18-Oct-06 0:10 
GeneralRe: Inserting into a multiple Datasets with 1 method [modified] Pin
Gareth H18-Oct-06 1:51
Gareth H18-Oct-06 1:51 
GeneralRe: Inserting into a multiple Datasets with 1 method Pin
Robert Rohde18-Oct-06 3:28
Robert Rohde18-Oct-06 3:28 
GeneralRe: Inserting into a multiple Datasets with 1 method Pin
Gareth H19-Oct-06 23:41
Gareth H19-Oct-06 23:41 
GeneralRe: Inserting into a multiple Datasets with 1 method Pin
Robert Rohde20-Oct-06 21:38
Robert Rohde20-Oct-06 21:38 
Well then you will have to do some more manual work:
DataRow[] newUserServiceRows = graphShared.MainDataSet.Tables["NodeChanges"].Select("stateChanged = " + (int)ServiceModeler.ModelerClass.StateChangeType.Added + " AND className = '" + className + "' AND userCreated = 'y'");

foreach (DataRow theRow1 in newUserServiceRows)
{
   //fill table1 (classname1)
   object[] nodeSets1 = new object[] {
      theRow1["Node_Version"].ToString(), theRow1["Node_Key"].ToString(),
      theRow1["Node_Key"].ToString(), "", "", "", "", "", "" };
   theSaveModelDataSet.Tables["New" + className1].Rows.Add(nodeSets1);

   //fill table2 (classname2)
   object[] nodeSets2 = new object[] {
      "", "",theRow1["Node_Key"].ToString(), theRow1["Node_XXX"].ToString()
      theRow1["Node_YYY"].ToString(), "", "", "", "", "", "" };
   theSaveModelDataSet.Tables["New" + className2].Rows.Add(nodeSets2);

   //fill table3 (classname3)
   object[] nodeSets3 = new object[] {
      theRow1["Node_Key"].ToString(), theRow1["Node_Key"].ToString(),
      "", "", "", "", "", theRow1["Node_Key"], "" };
   theSaveModelDataSet.Tables["New" + className3].Rows.Add(nodeSets3);
}


This generally hardcodes how the object arrays for each destination table have to be generated. I just invented some combination. Thus you wil have to make it correct yourself.

Robert
QuestionMember hiding and polymorphism Pin
Mairaaj Khan17-Oct-06 23:43
professionalMairaaj Khan17-Oct-06 23:43 
AnswerRe: Member hiding and polymorphism Pin
Christian Graus18-Oct-06 0:01
protectorChristian Graus18-Oct-06 0:01 
AnswerRe: Member hiding and polymorphism Pin
saqib8218-Oct-06 0:01
saqib8218-Oct-06 0:01 
GeneralRe: Member hiding and polymorphism Pin
Christian Graus18-Oct-06 0:08
protectorChristian Graus18-Oct-06 0:08 
GeneralRe: Member hiding and polymorphism Pin
saqib8218-Oct-06 0:11
saqib8218-Oct-06 0:11 
GeneralRe: Member hiding and polymorphism Pin
Christian Graus18-Oct-06 0:19
protectorChristian Graus18-Oct-06 0:19 
GeneralRe: Member hiding and polymorphism Pin
Mairaaj Khan18-Oct-06 1:33
professionalMairaaj Khan18-Oct-06 1:33 
QuestionOverriding Hide method Pin
Mandaar Kulkarni17-Oct-06 23:03
Mandaar Kulkarni17-Oct-06 23:03 
AnswerRe: Overriding Hide method Pin
Martin#17-Oct-06 23:26
Martin#17-Oct-06 23:26 
GeneralRe: Overriding Hide method Pin
Mandaar Kulkarni18-Oct-06 0:03
Mandaar Kulkarni18-Oct-06 0:03 
Questioncalling Console Application from Windows Application? Pin
leanhsang17-Oct-06 22:57
leanhsang17-Oct-06 22:57 
AnswerRe: calling Console Application from Windows Application? Pin
Christian Graus17-Oct-06 23:00
protectorChristian Graus17-Oct-06 23:00 
QuestionHow can i set/get metadata information of file using C# Pin
Adiphe17-Oct-06 22:56
Adiphe17-Oct-06 22:56 
AnswerRe: How can i set/get metadata information of file using C# Pin
Christian Graus17-Oct-06 23:00
protectorChristian Graus17-Oct-06 23:00 
GeneralRe: How can i set/get metadata information of file using C# Pin
Adiphe17-Oct-06 23:11
Adiphe17-Oct-06 23:11 
GeneralRe: How can i set/get metadata information of file using C# Pin
Michael P Butler17-Oct-06 23:19
Michael P Butler17-Oct-06 23:19 
QuestionObject as database Pin
nemopeti17-Oct-06 22:56
nemopeti17-Oct-06 22:56 

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.