NHibernate proxy causing problems with databinding

后端 未结 5 1365
庸人自扰
庸人自扰 2021-01-20 05:34

I have a gridview that is bound to the result from an nhibernate query. If the first item in the list is edited the following exception is thrown:

System.Refle

5条回答
  •  醉酒成梦
    2021-01-20 06:06

    I don't use my domain objects in directly in the views. Instead I use the MVVM pattern and create suitable view models that holds non-proxied objects.

提交回复
热议问题