Guardian’s Home

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

Archive for the ‘NHibernate’ tag

Wrap IList<T> and use it for effective binding in Silverlight and WPF

without comments

If you use some ORM tool like NHibernate and your business entities or DTOs have to support collections of other elements, you are forced to use the interface notation IList<T> or ICollection<T> to hold a reference to the real collection implementation (cause usually those ORM tools tend to inject their own implementation of the collection [...]



kick it on DotNetKicks.com

Written by Guardian

November 24th, 2008 at 7:05 am

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