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

Previous Page | Next Page

COMMENTS

Obviously you meant a Fluent NHibernate trick ;)

posted @ Wednesday, July 01, 2009 1:30 PM by foxedup


True dat!

posted @ Wednesday, July 01, 2009 9:26 PM by Fastalanasa


Name (required)

Email (required)

Website

Enter the code shown above in the box below

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