Archive | April 8, 2010

NHibernate.HibernateException: instance not of expected entity type

Given:

[ActiveRecord(DiscriminatorValue = "OnState")]
class OnState: UnitState {
//…
}

I got

NHibernate.TransactionException: An error occured when trying to dispose the transaction —> NHibernate.HibernateException: instance not of expected entity type: Model.OnState is not a: Model.UnitState

Hmmm?

Comments { 0 }