Hi guys ,
I am doing following .
public static IList<ClsCompany > RetreiveAll()
{
IList<ClsCompany> Company = null;
try
{
using (var Session = ClsNhiberateHelper.OpenSession())
{
NHibernate.IQuery Query = Session.CreateQuery("from tblCompany tc order by tc.company ");
Company = Query.List<ClsCompany>();
return Company;
}
}
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?