pawan2290
asked on
Exception mapping file using NHIBERNATE
I am trying to create a sample NHibernate application. And I am getting an exception {"Could not find a getter for property 'Id' in class 'NHibernateTest.Users'"} . The Id is the primary key for the table.
I have tried to set the Id as
public int ID
{
get { return this.Id;}
}
based on some help from the internet.
But still this doesnt help. I have attached all the files.
Hope someone can help me out.
Please rename all the files without the .txt extension.
AssemblyInfo.cs.txt
Program.cs.txt
Users.cs.txt
Users.hbm.xml.txt
I have tried to set the Id as
public int ID
{
get { return this.Id;}
}
based on some help from the internet.
But still this doesnt help. I have attached all the files.
Hope someone can help me out.
Please rename all the files without the .txt extension.
AssemblyInfo.cs.txt
Program.cs.txt
Users.cs.txt
Users.hbm.xml.txt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.