Best way to filter domain objects for json output in an ASP.NET MVC application

后端 未结 6 1236
温柔的废话
温柔的废话 2020-12-05 20:59

If I\'m rendering a regular view in asp.net mvc the only domain object properties that show up in my page the ones I specifically write out. For example:

<         


        
6条回答
  •  失恋的感觉
    2020-12-05 21:54

    In my experience, the JavaScriptSerializer respects some of the XmlSerialization attributes such as XmlIgnore too.

提交回复
热议问题