c# - What does the @model keyword do in an ASP.NET MVC View? -


i have doubts how work @model statement cshtml view. in code, have this:

@model mycorp.earlywarnings.webinterface.models.homepagemodel 

so do?

i think including homepagemodel model current view object instance of class contains information have show in view, interpretration correct or missing something?

another doubt is: populate model? populated specific controller of view?

i think including homepagemodel model current view object instance of class contains information have show in view, interpretration correct or missing something?

yes, have interpretted correctlty.

is populated specific controller of view?

yes, populated specific action of specific controller view.


Comments

Popular posts from this blog

javascript - Count length of each class -

What design pattern is this code in Javascript? -

hadoop - Restrict secondarynamenode to be installed and run on any other node in the cluster -