some Bug Fixes in asp.net mvc preview 2

The following bugs have been resolved in the ASP.NET MVC 2 Preview 2 release.

· Performance improvements were made to partial view lookup.

· Templated helpers no longer experience an infinite-recursion bug when the templates are applied to model objects with circular references.

· The default object template renders only the properties of an object and no longer attempts to render the properties of the properties of an object (that is, it no longer performs a “deep dive”). The default object template displays simple properties (primitives and value types) by converting them to a string value. For complex objects, the default object template displays a value that represents the object. If the object has a DisplayColumnAtttribute attribute applied that specifies the name of a property, the value of that property will be displayed. Otherwise , the value that results from calling the object’s ToString method is used unless it is exactly the same as the object’s full type name. In that case, the value of the first property of the object is used.

· Calling a generic templated helper with an interface type no longer throws an exception with the message “This exception should never occur”. In such cases, if there is no template for the interface, the template helpers default to an interface. The exception message was changed to be more descriptive for the case where the exception should not occur.

· Applying the RequiredAttribute attribute to a property with a type that is a value type now results in one error message instead of two.

Posted in: asp.net | Tags: asp.net mvc mvc preview 2 templated displaycolumnatttribute requiredattribute templated helpers infinite-recursion