views:

45

answers:

1

hello dear,

I am new to Nhibernate, I am trying to get record by ID and I am getting exception

Unknown entity class: DAL.Product

here is my line of code where I am getting exception..

Repository.Get<Product>(id);

What could be the issue?

Thanks for your help.

+3  A: 

What about checking if the xml mapping file is marked as "embedded resource"? If the xml is NOT marked as embedded resource you would get an error like that.

Claudio Redi