Click here to Skip to main content
15,891,703 members
Home / Discussions / C#
   

C#

 
QuestionCheck one item in CheckedListbox Pin
psamy2-Aug-06 0:11
psamy2-Aug-06 0:11 
AnswerRe: Check one item in CheckedListbox Pin
stancrm2-Aug-06 0:36
stancrm2-Aug-06 0:36 
GeneralRe: Check one item in CheckedListbox Pin
psamy2-Aug-06 2:08
psamy2-Aug-06 2:08 
Questionftp server fre space question Pin
puiutzz1-Aug-06 22:42
puiutzz1-Aug-06 22:42 
AnswerRe: ftp server fre space question Pin
yueue2-Aug-06 4:53
yueue2-Aug-06 4:53 
Questionloading bitmap file Pin
diddy341-Aug-06 22:28
diddy341-Aug-06 22:28 
AnswerRe: loading bitmap file Pin
Ingo2-Aug-06 1:42
Ingo2-Aug-06 1:42 
QuestionMapping data Pin
abnorm1-Aug-06 22:27
abnorm1-Aug-06 22:27 
Hi,

I´ve a designproblem how I shall compare values from two lists of data and finally store in a output. But the output is not the problem it is the mapping, comparing. For sure I can use a several of techniques for comparing data but Im looking for a optimal method in C# 2.0. Maybe I can use the generics List, Comparer etc...?

Ok, first I recieve a xml file via a webservice. I validate and transform it for prepering the mapping, see <sou&lt;&lt;&lt;rcedatalist>. Second I get the mappingvalues from the database and bind to a List<>, xml!?!

It is the "SourceId" attribute I want to compare with a equal value from the second list. The SourceId is a generic attribute and e.g. "16481788" means street and "16481791" city, ok!?!

Below shows the sourcelist of data, the list of mapping values and a outputlist.

<br />
<br />
<SourceDataList><br />
  <DataRow SourceId="16481788" value="21st street" dbType="string" /><br />
  <DataRow SourceId="16481789" value="Manhattan" dbType="string" /><br />
  <DataRow SourceId="16481790" value="2345" dbType="int" /><br />
  <DataRow SourceId="16481791" value="New York" dbType="string" /><br />
</SourceDataList><br />
<br />
<MappingDataList><br />
  <DataRow SourceId="16481788" DestId="21" /><br />
  <DataRow SourceId="16481789" DestId="22" /><br />
  <DataRow SourceId="16481790" DestId="23" /><br />
  <DataRow SourceId="16481791" DestId="24" /><br />
</MappingDataList><br />
<br />
<OutputDataList><br />
  <DataRow DestId="21" value="21st street" /><br />
  <DataRow DestId="22" value="Manhattan" /><br />
  <DataRow DestId="23" value="2345" /><br />
  <DataRow DestId="24" value="New York" /><br />
</OutputDataList><br />
<br />


These three list only show the structure. I can treat them in any suitable format, e.g. generic lists etc. Maybe in performance purpose I want to make i xml batch insert into the database.

List1 List2 = XmlStream > Database

I hope you have good tips out thereSmile | :)



Best regards
//Albin Malmgren
QuestionUsercontrol - Respond to parent controls events? Pin
Ian Roberts1-Aug-06 22:21
Ian Roberts1-Aug-06 22:21 
AnswerRe: Usercontrol - Respond to parent controls events? Pin
S. Senthil Kumar2-Aug-06 3:37
S. Senthil Kumar2-Aug-06 3:37 
QuestionWinform Control Event Handling Pin
adityap1-Aug-06 21:22
adityap1-Aug-06 21:22 
Questiondifferent font in each row of listbox Pin
nauty1-Aug-06 21:18
nauty1-Aug-06 21:18 
AnswerRe: different font in each row of listbox Pin
albCode1-Aug-06 21:23
albCode1-Aug-06 21:23 
AnswerRe: different font in each row of listbox Pin
yueue2-Aug-06 4:56
yueue2-Aug-06 4:56 
QuestionError Rolling Back Setup (Installer Class) Pin
abhinish1-Aug-06 20:34
abhinish1-Aug-06 20:34 
QuestionCluster Management APIs Pin
NewDev4241-Aug-06 20:25
NewDev4241-Aug-06 20:25 
QuestionAnimated gif in DataGridView Pin
e_LA1-Aug-06 20:05
e_LA1-Aug-06 20:05 
QuestionTroubles Debugging In .NET 2.0.50727 Pin
white.thief1-Aug-06 19:11
white.thief1-Aug-06 19:11 
AnswerRe: Troubles Debugging In .NET 2.0.50727 Pin
leppie1-Aug-06 20:48
leppie1-Aug-06 20:48 
GeneralRe: Troubles Debugging In .NET 2.0.50727 Pin
white.thief2-Aug-06 5:09
white.thief2-Aug-06 5:09 
Questionhow to get the cpu and memory use ratio ? Pin
Janezzq1-Aug-06 15:06
Janezzq1-Aug-06 15:06 
AnswerRe: how to get the cpu and memory use ratio ? Pin
sundar1563-Aug-06 11:36
sundar1563-Aug-06 11:36 
Questionhow to get the cpu and memory use ratio ? Pin
Janezzq1-Aug-06 15:03
Janezzq1-Aug-06 15:03 
AnswerRe: how to get the cpu and memory use ratio ? Pin
seq-2-Aug-06 11:47
seq-2-Aug-06 11:47 
QuestionLocalization problem ! Pin
Vertyg01-Aug-06 13:08
Vertyg01-Aug-06 13:08 

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.