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:
<
I use anonymous types for this:
var customer = from c in serviceLayer.GetCustomers()
where c.Id == id.Value
select new { FirstName = c.FirstName };
This is not just a good idea. Rather, it's protection against the exception that you will get when calling Json() if your object graph contains a circular reference.