locked
How does View access the data in Model in MVC Architecture? RRS feed

  • Question

  • Hi,

    I have developed a windows application in VB.net which is not following the MVC design pattern as of now but still the UI, BL and DAL are decoupled into separate DLL's. Now I want to change the design as per MVC. I have a question on the same, hope I will get the better suggestion from this forum.

    Application Background:
    This Application is suppose to receive the data from external source and this data is updated in the model and after the model is updated it will raise a event to all the veiw's regarding this change, and finally view will refresh itself to display the changed data.

    Now my question is: How does View access the data in the Model ? Does View is suppose to have the refrence of the Model?
    If Yes then what is the need of Controller as View can directly handle the evenets of Model.

    Example:
    Suppose I have a data table in my Model and after it is change the Model will raise a event.
    After the View receive the event, how is it suppose to get the data table.

    Thank You.
    Thursday, October 22, 2009 5:02 AM

Answers

  • Greetings

    Links regarding the Proof Of Concept - Very Important Links, Go through it ...........!!!

    Proof of concept
    http://en.wikipedia.org/wiki/Proof_of_concept

    http://www.wisegeek.com/what-is-a-proof-of-concept.htm

    Hope this helps you out.

    Take Care

    PL

    Helping People To Solve Technical Problems
    Friday, October 23, 2009 5:16 AM

All replies

  • Greetings,

    MVC pattern is mainly used for ASP.net application. Consult with software architects before you makes changes in design patterns. It will impact your design and coding to a great extend.

    Finalize what you want to do and then go ahead. You should have clear cut idea what you are trying to do here.

    I would suggest you to spend some time in creating in proof of concept(POC) and then you will have a clear cut idea.

    Some links are given below

    MVC vs. MVP vs. MVVM - Very Important Link - Go through it.
    http://nirajrules.wordpress.com/2009/07/18/mvc-vs-mvp-vs-mvvm/

    Model View Controller (MVC ) Architecture
    http://www.dotnetspider.com/resources/316-Model-View-Controller-MVC-Architecture.aspx

    Hope this helps.

    Take Care

    PL





    Helping People To Solve Technical Problems
    Friday, October 23, 2009 5:04 AM
  • Greetings

    Some additional information regarding Model View Presenter(MVP). Additional learning

    Model View Presenter
    http://msdn.microsoft.com/en-us/magazine/cc188690.aspx

    Model-View-Presenter Pattern
    http://msdn.microsoft.com/en-us/library/cc304760.aspx

         
    Hope this helps you.

    Take Care

    PL
    Helping People To Solve Technical Problems
    Friday, October 23, 2009 5:09 AM
  • Greetings

    Links regarding the Proof Of Concept - Very Important Links, Go through it ...........!!!

    Proof of concept
    http://en.wikipedia.org/wiki/Proof_of_concept

    http://www.wisegeek.com/what-is-a-proof-of-concept.htm

    Hope this helps you out.

    Take Care

    PL

    Helping People To Solve Technical Problems
    Friday, October 23, 2009 5:16 AM
  • Thank you.

    I got what I was looking for from the following link which you mentioned.

    http://msdn.microsoft.com/en-us/library/cc304760.aspx

    This links talks about View Updates in case of Passive View and Supervising Controller.

    Friday, October 23, 2009 8:27 AM