I just upgraded to NH 3 Alpha. Some of my original unit tests failed
and this one bothers me as to why its failing.

This Fails
int result = Repository.Where(x => !x.IsDeleted).Where(x => x.Parent
== null).Count();

This Succeeds (calling ToList() before second where)
int result = Repository.Where(x => !x.IsDeleted).ToList().Where(x =>
x.Parent == null).Count();

also this Succeeds (proving it can't be a mapping issue)
int result = Repository.Where(x => !x.IsDeleted).Count()

The error I get is
No persister for: Common.Entity.EntityBase.

EntityBase is just an abstract class I inherit from that provides me
some common properties for all entities.

Any ideas ??

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to