Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
モデル内のすべての Decimals を完全な行列でフォーマットするように MVC4 を構成するにはどうすればよいですか? モデルのすべてのプロパティに DataAnnotations を追加したくありません。
これを行うには、10 進数の DisplayTemplate を作成します。
@model decimal @Model.ToString("0.0000") // Or whatever format you're after...