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.
これはおそらく以前に起こったことであり、おそらく非常に主観的です。私は、ViewDataの使用を避け、FromViewModelクラスを使用して情報をビューに渡すことを避けてきました。
このアプローチの主な利点はありますか?
ありがとう
デイビー
ViewDataは強い型付けではありませんが、Modelsは強い型付けです。そのため、モデルはエラーが発生しにくく、より明確になります。