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
Post a Comment