NHibernate requires events to be virtual?

Posted by Jimit on Stack Overflow See other posts from Stack Overflow or by Jimit
Published on 2009-04-15T10:17:19Z Indexed on 2010/04/21 7:03 UTC
Read the original article Hit count: 226

I'm attempting to map an entity hierarchy using NHibernate almost all of which have events. When attempting to build a session factory however, I get error messages similar to the following:

Core.Domain.Entities.Delivery: method remove_Scheduled should be virtual

Delivery is an entity in my domain model with an event called Scheduled. Since events cannot be declared virtual I'm at a loss as to how to proceed here. Why would NHibernate need events to be virtual?

© Stack Overflow or respective owner

Related posts about nhibernate-mapping

Related posts about fluent-nhibernate