I can provide a simple example if you need it.
Sean
Sent from my Windows Phone From: Angie Winterbottom
Sent: Wednesday, September 07, 2011 9:55 AM
To: FluentMigrator Google Group
Subject: Is it possible to get and use an insert id?
or
--
You received this message because you are subscribed to the Google
Groups "FluentMigrator Google Group" group.
To post to this group, send email to
fluentmigrato...@googlegroups.com.
To unsubscribe from this group, send email to
fluentmigrator-goog...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/fluentmigrator-google-group?hl=en.
What we tend to do in this situation, is to explicitly set the primary keys
so that we know what they are before the import.
Then for databases that have a issues with you inserting primary keys into
identity fields, we place an (sql server example)
Execute.Sql("SET IDENTITY_INSERT [TableName] ON");
//Insert rows here
Execute.Sql("SET IDENTITY_INSERT [TableName] OFF");
If you combine this with an IFDatabaseType call then you handle all of your
database.
Just in case this might be helpful.
Andy
-----Original Message-----
From: fluentmigrato...@googlegroups.com
[mailto:fluentmigrato...@googlegroups.com] On Behalf Of Angie
Winterbottom
Sent: 07 September 2011 09:49
To: FluentMigrator Google Group
Subject: Is it possible to get and use an insert id?
or
--