Click here to Skip to main content
15,893,564 members
Home / Discussions / C#
   

C#

 
GeneralRe: exposing a class library as a COM object Pin
Heath Stewart20-Apr-04 9:47
protectorHeath Stewart20-Apr-04 9:47 
GeneralCould someone please post a tutorial Pin
MeterMan20-Apr-04 8:54
MeterMan20-Apr-04 8:54 
GeneralRe: Could someone please post a tutorial Pin
Heath Stewart20-Apr-04 9:09
protectorHeath Stewart20-Apr-04 9:09 
GeneralRe: Could someone please post a tutorial Pin
MeterMan20-Apr-04 15:34
MeterMan20-Apr-04 15:34 
GeneralRe: Could someone please post a tutorial Pin
Heath Stewart21-Apr-04 3:01
protectorHeath Stewart21-Apr-04 3:01 
GeneralRe: Could someone please post a tutorial Pin
MeterMan20-Apr-04 23:21
MeterMan20-Apr-04 23:21 
GeneralRe: Could someone please post a tutorial Pin
Heath Stewart21-Apr-04 3:12
protectorHeath Stewart21-Apr-04 3:12 
GeneralOleDbDataAdapter Pin
Mehdi Mousavi20-Apr-04 8:49
Mehdi Mousavi20-Apr-04 8:49 
Hi folks,

Consider an SQL Server table that has got a PK (auto-identity column), which
has been referenced by another table as a FK. Then imagine 2 DataTables that
has been created to refer to the above-mentioned SQL Server tables, either
partially or completely. I need to know how can I read/write these
DataTables from/to those DataSources using the OleDbDataAdapter.

It goes without saying that when you insert a row within the first source table, you'll get an IDENTITY that has to be referenced by the second table as the FK's value. The thing that I cannot understand is that how I can possibly interact with these 2 DataTable(s) through the OleDbDataAdapter and how to map DataSource-DataTable columns to each other as well as how to get the newly added IDENTITY and insert it in the second DataTable.

Any sample would be highly appreciated

Thanks in advance,

Mehdi Mousavi - Software Architect [ http://mehdi.biz ]
GeneralRe: OleDbDataAdapter Pin
Heath Stewart20-Apr-04 9:06
protectorHeath Stewart20-Apr-04 9:06 
GeneralRe: OleDbDataAdapter Pin
Mehdi Mousavi20-Apr-04 9:55
Mehdi Mousavi20-Apr-04 9:55 
GeneralRe: OleDbDataAdapter Pin
Heath Stewart20-Apr-04 10:07
protectorHeath Stewart20-Apr-04 10:07 
Questionhow can communicate with a router Pin
kashif anwar syed20-Apr-04 8:33
kashif anwar syed20-Apr-04 8:33 
AnswerRe: how can communicate with a router Pin
Heath Stewart20-Apr-04 8:51
protectorHeath Stewart20-Apr-04 8:51 
AnswerRe: how can communicate with a router Pin
Klaus Weisser20-Apr-04 9:17
Klaus Weisser20-Apr-04 9:17 
GeneralRe: how can communicate with a router Pin
Anonymous23-Apr-04 17:43
Anonymous23-Apr-04 17:43 
GeneralEmbed C# controls in MFC views/dialogs Pin
rkvs20-Apr-04 7:51
rkvs20-Apr-04 7:51 
GeneralRe: Embed C# controls in MFC views/dialogs Pin
Heath Stewart20-Apr-04 8:48
protectorHeath Stewart20-Apr-04 8:48 
Generalserial communication in c# Pin
balsmn20-Apr-04 7:34
balsmn20-Apr-04 7:34 
GeneralRe: serial communication in c# Pin
Heath Stewart20-Apr-04 8:37
protectorHeath Stewart20-Apr-04 8:37 
GeneralRe: serial communication in c# Pin
Marc Clifton20-Apr-04 13:37
mvaMarc Clifton20-Apr-04 13:37 
GeneralSmall string building question Pin
Le centriste20-Apr-04 6:26
Le centriste20-Apr-04 6:26 
GeneralRe: Small string building question Pin
Jeremy Kimball20-Apr-04 6:37
Jeremy Kimball20-Apr-04 6:37 
GeneralRe: Small string building question Pin
Mike Dimmick20-Apr-04 6:45
Mike Dimmick20-Apr-04 6:45 
GeneralRe: Small string building question Pin
Heath Stewart20-Apr-04 8:33
protectorHeath Stewart20-Apr-04 8:33 
GeneralRe: Small string building question Pin
Jeff Varszegi20-Apr-04 9:33
professionalJeff Varszegi20-Apr-04 9:33 

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.