Hi,
I have quite a complex entity structure where several classes inherit from a base class, hence choosing a table per-subclass structure in nhibernate.
BaseProject
ProjectA : BaseProject
ProjectB : BaseProject
ProjectC : BaseProject
ProjectD : BaseProject
I want to search where one of the criteria will be ProjectType. I'm trying to avoid writing a seperate query specification for each ProjectType.
Does anyone know how this might be achieved? Is it even something Linq to nHibernate can do, as I think it isn't complete yet.
I was expecting something like x => x.GetType() == typeof(ProjectTypeA) to work but it doesn't.
Thanks, Tim