Login | Register  
View Article

Current Articles | Categories | Search | Syndication

Learned a neat NHibernate trick

While reading my daily blog list, I came across a feature that I wasn't aware of. You can specify the table in the ClassMap derived classes. I sort of suspected that you could do this but I had no idea how. What you do is this:

WithTable("TableNameHere");

Put that as the first line inside your constructor.

Neato!

posted @ Wednesday, July 01, 2009 11:54 AM by Fastalanasa

Copyright 2007-2010 by WheelMUD  | Terms Of Use | Privacy Statement
Google Analytics Alternative