LINQ in Action roller

synchronize auto generated IDS for two tables

Hi, I am working with 2 DataTransferObjects for 2 tables, eg. Person (pk: id) and PersonDetails (pk: id, languagecode). When i generate the instances of the dataclasses i want to assign the PersonDetails id the id of PErson, but unfortunately i don'T know the auto generated id at this moment. Persn p = new Person(); PersonDetail pd = new PersonDetails(); pd.id = p.id.whichWillBegeneratedAfterInsert; Of course I could make the id of PErsondEtails also an auto generated entity. I don't know if this Read More...
Published Sunday, October 05, 2008 6:12 PM by MSDN Forums: LINQ Project General
Anonymous comments are disabled

Featured Item

This Blog

Sponsoring

Syndication