Note that there are some explanatory texts on larger screens.

plurals
  1. PORepository pattern with a WCF Rest Service and returning IQUERYABLE using LINQ to OBJECTS?
    primarykey
    data
    text
    <p>i wish to create a repository pattern but with a WCF Rest Service which controls the data access. Can anyone confirm or help with my thinking / config.</p> <ol> <li>ASP.NET Controllers >> call to service (not rest service but service of a repository pattern)</li> <li>Repository Pattern Service >> calls to repository</li> <li>Repository >> calls to WCF Rest Service to receive data.</li> </ol> <p>Is this setup good, or should i remove the Repository layer and have the Repository service call directly to the REST Service?</p> <p>Does anyone do a similar setup?</p> <p>I would love to hear comments?</p> <p>Basically my Rest Service (WCF) would return XHTML...</p> <p>So in my repository layer how would i convert whats returned from my Rest Service into IQUERYABLE? I presume i would need to do ReadAsDataContract into a class (data contract) and then use LINQ to OBJECTS?? This is a causing me a bit of confusing</p> <p>Becuase of course the normal is to return IQUERYABLE form the repository layer to the service layer</p> <p>Then the service layer returns to the calling client normal as TOLIST or similar.</p> <p>Really appreciated any input anyone has.</p> <p>Thanks</p> <p><strong>EDIT</strong></p> <p>Ermm after rethining this, i think i am doing it wrong... i should basically just covert the Service layer of the repository into a WCF REST Service... this way my other clients can call my rest service??</p> <p>I suppose i keep the Repository layer there but i could get this to call a Data Services layers (technically another rest service) for my data acces..</p> <p>Does this make better sense?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload