|
![]() |
#1 |
Участник
|
Цитата:
![]() Цитата:
The UnitOfWork class automatically propagates the primary key value to the corresponding foreign key field, when the row with the foreign key field is inserted. The call pattern for inserts is first to add one record at a time to your constructed UnitOfWork object. After all the inserts have been added, you call the saveChanges method to persist the inserts to the database. The pattern is similar for updates and deletes. You can add inserts, updates, and deletes in succession, in any sequence, and then call the saveChanges method.
|
|
|
За это сообщение автора поблагодарили: Logger (3). |