trust me, i know what you are talking about, i did the same thing two years
ago,

http://jfromaniello.blogspot.com/2009/07/ieditableobject-another-behaviour-for.html
<http://jfromaniello.blogspot.com/2009/07/ieditableobject-another-behaviour-for.html>
http://jfromaniello.blogspot.com/2009/07/introducing-editablecollection.html
http://code.google.com/p/unhaddins/source/browse/?r=as-is-inblogposts#hg%2FuNhAddIns%2FuNhAddIns.ComponentBehaviors.Castle
http://jfromaniello.blogspot.com/2009/10/introducing-unhaddinscomponentbehaviors.html
And you know what? it is all deprecated, i don't believe in this way of
doing things. If you want to use AOP in entities you better go with
Postsharp or some other static mechanism.


*if you get "NHibernate.MappingException : No persister for: Company" is
because either:*
-you have no mapping for Company
-Company is not of the type nhibernate expect, because you are creating a
proxy,

for the first case, add the proper mapping. for the second case, you would
need something like this:

http://code.google.com/p/unhaddins/source/browse/uNhAddIns/uNhAddIns.NHibernateTypeResolver/EntityNameResolver.cs?r=as-is-inblogposts
then you need to add an extra interface, as a marker to the proxy...
IWellKnownProxy and return the target type name.



2011/3/5 H.Alex <[email protected]>

> And to spam some more, I added this to the above test and it passes..
>
>            Assert.AreSame(typeof(Company), myComp.GetType());
>
> --
> 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.
>
>

-- 
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