-
Recent Posts
Recent Comments
- Rooney on Hacking Websites with Ruby and Nokogiri
- Mike on Dear .NET Community, You Blew It!
- Momo Levi on Hacking Websites with Ruby and Nokogiri
- Swapnil Bhavekar on Film Making: A Better Software Development Metaphor
- Tobias Tadysiak on ADIAD
Archives
Categories
Meta
Category Archives: NHibernate
Making history explicit
Introduction In one product of our solution we needed to record the full history of some entities. What does this mean? It means we create a history entry whenever the state of the corresponding entity changes. When doing this there … Continue reading
Ad-hoc mapping with NHibernate
In my recent adventures with massive bulk processing, there are some times when I want to pull bulk loaded tables from SQL, but don’t want to go through all the trouble of building a mapping in NHibernate. For example, one … Continue reading
Using Fluent NHibernate With Legacy Databases
I am currently working on a project that has a requirement that it be able to access data from a legacy SQL Server database. One feature of this system is the ability to add and store checking accounts. These checking … Continue reading
Also posted in Fluent NHibernate, Legacy Data, SQL Server
4 Comments
Bulk processing with NHibernate
On a recent project, much of the application integration is done through bulk, batch processing. Lots of FTP shuffling, moving files around, and processing large CSV or XML files. Everything worked great with our normal NHibernate usage, until recently when … Continue reading
Implementing Domain Queries
My current Repository interface looks something like this: public interface IRepository { T FindOne<T>(int id); T FindBy<T>(Expression<Func<T, bool>> expression); IEnumerable<T> FindAllBy<T>(Expression<Func<T, bool>> expression); IEnumerable<T> FindAll<T>(); T FindOneBy<T>(Expression<Func<T, bool>> expression); void Save<T>(T target); void Update<T>(T target); void SaveOrUpdate<T>(T target); void Delete<T>(T … Continue reading
Migrating to Fluent NHibernate
Recently, I’ve been entrenched in migrating our existing hbm.xml mapping files to Fluent NHibernate. Having been through other OSS upgrades, I was expecting something along the lines of pulling teeth. I pictured a branch, tedious work to try and move … Continue reading
Article series on NHibernate and Fluent NHibernate – Part 3
Today the third part of my series on NHibernate and Fluent NHibernate went live. You can read it here. Summary In part 3 of this article series about NHibernate and Fluent NHibernate I have discussed how to let Fluent NHibernate … Continue reading
Configuring Fluent NHibernate with an External NHibernate Config File
A while ago I was having issues using configuring fluent NHibernate with an external configuration file. I kept running into the issue of mappings not being registered. I was finally able to get it working appropriately and thought I would … Continue reading
Some quick updates
I know I’ve been remiss in my blog posting duties. Please trust me when I say it’s for good reason and that you’d understand. I appreciate you sticking with me. In the meantime, here are a few tidbits that you … Continue reading
Castle ActiveRecord and registering classes at runtime
I use the following trick for adding ActiveRecord classes after the fact for our in-house plug-in architecture. Thanks to whichever blogger/mailing list I picked this up from so long ago. Scenario 1: Class(es) to load inherit from same base class … Continue reading
Also posted in Uncategorized
15 Comments
