I have a foreign key constraint I have added to a VS2010 SQL Server Database Project which I have modified to specify 'WITH CHECK' on the constraint.
ALTER TABLE [dbo].[Foo] WITH CHECK
ADD CONSTRAINT [FK_FooBar]
FOREIGN KEY ([BarKey])
REFERENCES [dbo].[Bar] ([Key])
The .sql output from the generated schema has 'WITH NOCHECK' inserted. This seems to be the default if you don't specify anything at all. The .dbschema file generated for the project does not specify CHECK or NOCHECK so I am a little confused where it is coming from.
Anyone know how to do this?
Cheers