LLBLGen 3.0 10/22/2010, targeting NHibernate framework.
I am trying to create my first typed list. I created a list selecting a few fields from an entity (DealerEntity) that works on it's own.
public static IList<DealerListTypedListRow> FetchDealerList() {
var _sessionFactory = StructureMap.ObjectFactory.Container.GetInstance<ISessionFactory>();
IList<DealerListTypedListRow> list = new List<DealerListTypedListRow>();
var session = _sessionFactory.OpenSession();
list = TypedListQueryFactory.GetDealerListTypedListQuery(session).List<DealerListTypedListRow>();
return list;
}
When I try to get the list I get this exception:
{"D is not mapped [select D.Name as Name, D.City as City, D.State as State, D.PhoneNumber1 as PhoneNumber1, D.IsActive as IsActive from D]"} System.Exception {NHibernate.Hql.Ast.ANTLR.QuerySyntaxException}
It seems like the "from DealerEntity D" is missing but I'm not sure why?
If I create the query using session.CreateCriteria with "from DealerEntity D" added it works.
I've searched around the forums and google to figure out what I'm missing but I haven't had any luck.
Thanks.