Loading tables dynamically with NHibernate

Posted by Trevor Goertzen on Stack Overflow See other posts from Stack Overflow or by Trevor Goertzen
Published on 2009-06-22T15:22:51Z Indexed on 2010/04/20 1:03 UTC
Read the original article Hit count: 292

Filed under:

I'm working on a project that requires me to load tables based on table names stored in another table. More tables will be added to the DB (and by someone else), so creating NHibernate mapping files for each table isn't an option.

Does anyone know if it is possible to load tables dynamically using NHibernate?

Edit: I should add that I'm on .NET 2.0, so I can't use Fluent NHibernate. Thanks for the suggestion though guys. I will use that as evidence in convincing my associates to upgrade.

© Stack Overflow or respective owner

Related posts about nhibernate