NHibernate narrowing proxy warning
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: We are building an ASP.NET MVC application utilizing NH for data access. Using NH Profiler I see a lot of warnings like "WARN: Narrowing proxy to Domain.CaseTask - this operation breaks ==". I get these very often when executing queries for classes which are mapped in a table per subclass, for example, using the NH Linq provider: Query<ICaseTask>().Where(c => c.Assignee == Of || c.Operator == Of) where the class CaseTask inherits from Task, triggers the warning. Information about the warning in the internet is scarce and mostly hints that