How should one go about setting up seed data while developing an nhibernate web application? (It’s Mvc)
Should I just create a method and have it fire during application load (when it debug mode), and simply comment it out when I don’t need it?
or is there a better way?
I suggest looking at something like AutoPoco.
This is not tied directly to NHibernate – you could in theory combine it with any data-layer that can persist POCO’s.
I’d avoid adding code to Application_Start though – that sounds like a recipe for accidentally trashing your production database. You’d be better off creating a simple console application that you can run whenever you want to reseed your database.