c# - When should I query from a database in my view, ASP.NET MVC -


problem:

if have scenario don't want change model properties , need 1 more attribute table, fine if write query inside view , show result?

if answer no, know why it's not considered way.

yes.

view not mirror of data structure. actually, it's aggregation and/or manipulation user-friendly presentation of data stands behind.


Comments

Popular posts from this blog

Why can rails not find a route created by a helper? -

javascript - jquery or ashx not working -

php - Redirect and hide target URL -