Guardian’s Home

.NET, Software Developing, Mammuths and various Life Things…

Archive for the ‘update rule’ tag

NHibernate: how to control Delete Rule and Update Rule in a foreign key when using SchemaExport

without comments

If in your project you let NHibernate generate the database from the information you provide with the schema mappings (a thing extremely useful, especially for testing cause you can build up the database in engines like SQLite), sometimes you may need to control some attribute in a foreign key of a table.
Here is a sample [...]



kick it on DotNetKicks.com

Written by Guardian

October 25th, 2008 at 3:31 am