asp.net mvc - Repository pattern with a WCF Rest Service and returning IQUERYABLE using LINQ to OBJECTS? -
I want to create a repository pattern, but with the WCF Rest Service which controls data access
<Is this setup good, or should I remove the repository layer and
Would it be nice to hear the comments?
Actually my service WCF) XHtml will come back ...
So in my repository layer how do I change the returning converters from my rest service to IQUERYABLE? I think I have to readAsDataContract in a database (data contract) and then LINQ has to use objects ?? It is a reason to confuse me
To be sure, the normal IQUERYABLE form is to return the repository layer in the service layer
Then the service layer returns normal calling to the client
Thanks
Edit
Any input as an ARM is appreciated. After reconsidering this, I think I am doing it wrong ... I basically hide the repository service layer in some WCF comfort service ... in this way my other clients call me comfortably service can do ??
I think I keep the repository layers there, but I can get it to call the data service layer (technically another relaxation service) for my data ..
Is this a better understanding?
Trying to apply to you, trying to hide the rest of the layer behind a repository. There was no intention of relaxing as an approach to implementing this type of architecture.
If you really want to relax, then you are going wrong about it. However, you are alone in this search.
Update:
Only one place I see a repository for domain objects, the rest is behind the interface. You have media types handler and user agent scripts present on the customer.
Comments
Post a Comment