LINQ in Modal View Presenter Pattern

Jul 8, 2008 at 8:56 AM
I want's to Create an application in which LINQ is implemented in MVP Architecture.
can any one help me how i can use LINQ in MVP.
thanks in advance.
Jul 9, 2008 at 10:00 PM
Using Linq would just be an implementation detail of the Model part of the Model-View-Presenter pattern.  In the WCSF sample applications (like the Order Management RI), we put the model behind a repository interface ( and the repository is accessed via a WCSF service).  The repository could be implemented with Linq, SQL, a dataset, an XML file (not recommended on a real web site), or some other data access mechanism;  it does not matter how it is implemented, so long as it fulfills the contract set in the repository interface.  The Presenter talks to the repository through its interface, and can provide data to the view... 

I hope that helps,
Michael Puleio -- patterns & practices