简体   繁体   中英

Inserting relational data using Dataset

I have two tables with Pk and Fk relationship.When i insert into one table(EventLog table) i get a logID(autogenerated) now i need to insert into the second table (EventErrorLog table).

The addrow method

public LOG_FIRE_EventLogErrorRow AddLOG_FIRE_EventLogErrorRow(
    LOG_FIRE_EventLogRow parentLOG_FIRE_EventLogRowByFK_LOG_FIRE_EventLogError_LOG_FIRE_EventLog,
    string errorDescription
)

need a row from EventLog table.How do pass that?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM