Home / ASP.NET Weblogs

Browse by Tags

Related Posts

  • ASP.NET MVC Transaction Attribute (using NHibernate)

    This attribute will be applied to any action method within an MVC controller, or even to an entire MVC controller class. It will cause the entire action (or any action in the controller, depending on usage) to be executed inside of a transaction, properly committing the transaction on successful method...
    Posted to Scott's Blog (Weblog) by srkirkland on 09-03-2009, 12:00 AM
    Filed under: Code, ASP.NET, NHibernate, ASP.NET MVC, MVC
  • Simple Auditing Using an NHibernate IInterceptor (Part 2)

    This is the second post of a multi-part post series on writing simple auditing functionality for an ASP.NET application using NHibernate.  The requirement was that every object modification event in the system should be logged by username and date.  Specifically I don’t need to know exactly...
    Posted to Scott's Blog (Weblog) by srkirkland on 09-08-2009, 12:00 AM
    Filed under: ASP.NET, Code, NHibernate
  • Simple Auditing using an NHibernate IInterceptor (part 1)

    This is the beginning of a multi-part post series on writing simple auditing functionality for an ASP.NET application using NHibernate.  The requirement was that every object modification event in the system should be logged by username and date.  Specifically I don’t need to know exactly which...
    Posted to Scott's Blog (Weblog) by srkirkland on 09-03-2009, 12:00 AM
    Filed under: ASP.NET, Code, NHibernate
  • Simple auditing using an NHibernate IInterceptor (Part 3)

    This is the third post of a multi-part post series on writing simple auditing functionality for an ASP.NET application using NHibernate.  The requirement was that every object modification event in the system should be logged by username and date.  Specifically I don’t need to know exactly...
    Posted to Scott's Blog (Weblog) by srkirkland on 09-10-2009, 12:00 AM
    Filed under: Code, ASP.NET, NHibernate
  • Simple auditing using an NHibernate IInterceptor (Part 4)

    This is the fourth and final post of a multi-part post series on writing simple auditing functionality for an ASP.NET application using NHibernate.  The requirement was that every object modification event in the system should be logged by username and date.  Specifically I don’t need to know...
    Posted to Scott's Blog (Weblog) by srkirkland on 09-15-2009, 12:00 AM
    Filed under: Code, ASP.NET, NHibernate, ASP.NET MVC
  • Base Class Object Equality for NHibernate Objects

    In any project where you use an ORM you often have all of your domain classes inherit from a common base class.  Among other things, your base class often contains your identity property.  Mine has a protected IdT (this is the Id type) field called id, and a public getter called ID. 1: protected...
    Posted to Scott's Blog (Weblog) by srkirkland on 09-21-2009, 12:00 AM
    Filed under: Code, Tips, ASP.NET, NHibernate
  • Using xVal with NHibernate Validator 1.2

    This will be a quick and dirty post about how to get xVal 1.0 ( http://xval.codeplex.com/ ) to work with the new NHibernate Validator 1.2beta ( http://nhforge.org/media/p/7.aspx ). The problem is that xVal 1.0 ships with a NHibernate Validator (NHVal) Ruleset Provider which does not compile against the...
    Posted to Scott's Blog (Weblog) by srkirkland on 09-29-2009, 12:00 AM
    Filed under: Code, ASP.NET, Validation, NHibernate, ASP.NET MVC, MVC
  • MVCContrib FluentHTML Select Lists and NHibernate

    When using ASP.NET MVC you will eventually want to do a select (drop down) or even a multiple select list, and your first though might be to use <%= Html.DropDownList %>.  Unfortunately you will soon notice that ASP.NET MVC always looks for a match between the name of the dropdown and a property...
    Posted to Scott's Blog (Weblog) by srkirkland on 10-08-2009, 12:00 AM
    Filed under: Code, ASP.NET, NHibernate, ASP.NET MVC, MVC
  • Required Validator For NHibernate Validators

    I’ve recently switched from the Enterprise Library Validation Application Block to using NHibernate Validators. If you are not familiar with the NHibernate Validator project, they are part of the NHibernate Contrib project and offer Validation constraints, and validation runner, and tight integration...
    Posted to Scott's Blog (Weblog) by srkirkland on 10-15-2009, 12:00 AM
    Filed under: Code, ASP.NET, Validation, NHibernate, ASP.NET MVC, MVC, xVal
  • Major Hack: Repository Tests With NHibernate And SQLite on a CI Server

    I recently setup my first continuous integration build server using JetBrains’ TeamCity product, and it couldn’t have been much simpler. However I kept running into an issue with my test projects whenever I was using NHibernate or SQLite (very useful or regression tests against an in-memory database...
    Posted to Scott's Blog (Weblog) by srkirkland on 10-20-2009, 12:00 AM
    Filed under: ASP.NET, Code, NHibernate, Tips
Page 1 of 2 (16 items) 1 2 Next >