I'm engaged in writing a product using LinqToSql for data-access. While we're rapidly developing, the model changes often. This means we dump and reload the database lots while developing. Thus, overhead is involved to recreate baseline data each time.
A process that restores a DB backup is not useful, because we would need to update the model DB just as often; same overhead (I think, anyway).
So, I want to use DataContext.CreateDatabase, then pull some data in from CSV files. Fine. But I would also like to stitch up the relationships, which means, ideally, knowing what the primary keys will be in advance (otherwise, given that some identities are GUIDs, it will be hard to stitch up the links I need to).
What is the equivalent to SET IDENTITY_INSERT IdentityTable ON
(and OFF) in Linq To SQL? Is there one?