If you are only going to be executing against Sql Server the you can use the
Execute method to turn on identity insert.
So for example,
Execute.Script("SET IDENTITY_INSERT [dbo].[ Foo] ON");
Insert.IntoTable("Foo") .InSchema("dbo").Row(new { MyId = 100 });
Execute.Script("SET IDENTITY_INSERT [dbo].[ Foo] OFF");
Hope it helps
Andy
--
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.