It seems like I had to use the basetype when I created my instance of
the controller like this
type.MakeGenericType(item.GetType().BaseType);

On Sep 26, 2:11 pm, marcus <[email protected]> wrote:
> I'm using this approch for setting up a proxy for my 
> classeshttp://ayende.com/Blog/archive/2009/08/07/nhibernate-amp-inotifyprope...
> But when I try to fetch my object like below I get No persister for:
> HomeProxy8f8bb4eee37c48b8acd6adb67ccd0240 exception because T is a
> proxy. How can I solve this?
>
>          public ActionResult Index() {
>             var page =_repository.Get<T>(71);
>             return View(new ViewModel(page));
>         }

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