Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

[DataType] and [DisplayFormat] ignored when choosing @Html.Display() and @Html.Editor() templates #933

@dougbu

Description

@dougbu

This is a functional gap compared with MVC 5.2. For example it leads to incorrect templates for @Html.Display() and @Html.Editor().

The current implementation of CachedModelMetadata<TPrototypeCache> does not override the DataTypeName property as it should. Value should be based on [DataType] or (for the special case of the "html" choice) [DisplayFormat] attributes in the model.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions