I have 2 tables in my database:
- Category
- BlogEntry
Each BlogEntry
has 1 or more Category
s associated with it.
If I want to get a BlogEntry
by its ID, I also want to get its Category
information.
Maybe this example doesn't illustrate exactly a scenario where this would make sense, but say I want to load the Category
ID and Name only, not all the other columns in the category database.
Would nHibernate load all the columns/properties for each entity?