I am joining two tables using primary key and foreign key.
My tables are
- Item, Columns are:
- ItemId int primary key,
- Name varchar,
- Price float,
- CategoryID int foreign key,
- QtyInStock int
- Category, Columns are:
- Id int pk,
- Category varchar,
- Name varchar
I want to select Category on basis of ID=categoryId
I am using NHibernate 4.03 with xml configuration files.