Hi guys ,
I am doing following .
public static IList<ClsCompany > RetreiveAll()
IList<ClsCompany> Company = null;
using (var Session = ClsNhiberateHelper.OpenSession())
NHibernate.IQuery Query = Session.CreateQuery("from tblCompany tc order by tc.company ");
Company = Query.List<ClsCompany>();
catch (Exception ex)
throw new Exception(ex.Message);
And Getting followung exception
tblCompany is not mapped [ from tblCompany tc order by tc.company ]
Please help me Why i am getting This?
Hibernate Query Language (HQL) is case sensitive. The entity name and propery name used in HQL must be in the same case in which they are specified in CFC. It is the common mistake while using HQL.
Could you verify in your code?
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)