ServiceStack/ServiceStack.OrmLite — pull request #71 by brainless83 (2012-07-20 09:56:03+00:00)
Title: Foreign Key Constraints

I added a new Attribute name "ForeignKeyConstraints". The attributes inherits from ReferencesAttribute and provides the possibility to define referential actions like "ON DELETE CASCADE".

I added unit test classes to the following test projects: OrmLite.Tests, SqlServer.Tests, MySql.Tests, PostgreSQL.Tests. As far as I can see no existing tests are broken. The new feature works as expected in MySql, SqlServer and PostgreSQL. In SQLite the table creation does work but the referential action seems to have no effect (see: ServiceStack.OrmLite.Tests.ForeignKeyAttributeTests.CascadesOnDelete).

Please review the changes and give me feedback if I should change something.