NHibernate Forge
The official new home for the NHibernate for .NET community

Browse Wiki Pages by Tags

Showing related tags and posts for the Wikis application. See all tags in the site
  • Changing Values in NHibernate Events

    Abstract Audit trails using NHibernate's event model often use the OnPreInsert and OnPreUpdate event listeners to change/ modify the state of the entity. Although It may work in some cases and is sometimes referred to as a solution, it should be noted the OnPreInsert and OnPreUpdate events are not...
    Posted to How to by David Gardiner on 07-06-2012
    Filed under: ,
  • Creating an Audit Log using NHibernate Events

    Scenario You want to create an audit table so that changes to business entities are tracked with a timestamp. You want this do be done automatically by NHibernate. Options There are a number of ways of doing this, using IInterceptor or the NHibernate 2.0 Event model. As the event model is fairly new...
    Posted to How to by John Davidson on 09-07-2011
    Filed under: , ,
  • Prefent NHibernate from saving default relations

    Let's take a look at the following code: public class TaxCalculator { public static readonly TaxCalculator NoTax = new TaxCalculator("No Tax", 0.0); public TaxCalculator() { } public TaxCalculator(String name, Double percentage) { this.Name = name; this.Percentage = percentage; } public...
    Posted to How to by dnperfors on 03-30-2011
    Filed under: , ,
Page 1 of 1 (3 items)
Powered by Community Server (Commercial Edition), by Telligent Systems