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

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -