Issue with nHibernate upgrade to 3.3 -
i upgraded .net windows apps nhibernate 1.2 3.3 having issue now. during runtime, throws following error:
a first chance exception of type 'nhibernate.invalidproxytypeexception' occurred in nhibernate.dll nhibernate.invalidproxytypeexception: following types may not used proxies: calltype : method equals should 'public/protected virtual' or 'protected internal virtual' .....
here's class:
public class calltype : domainobject<int> { public virtual string description { get; protected set; } public virtual string name { get; protected set; } public calltype() {} public override int gethashcode() { return string.format("{0}|{1}", description, name).gethashcode(); } } did miss anything? members public virtual. lazy loading required in application
you inheriting domainobject. suspect class has method equals in it, , not set virtual.
the constructor calltype not need virtual people mention.
Comments
Post a Comment