Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I like the framework and would like to use it for my database service layer but wondering if there is a way to create just one generic service and one generic request/response for CRUD operations on all entities?
Posted
Comments
Sergey Alexandrovich Kryukov 10-Sep-15 16:22pm    
It all depends on the set of tasks to be performed by the service. I would say, for a fixed set, it's always possible, but usually makes no practical sense. Actually, it's not quite clear what do you mean by "one generic request" and response, but it may mean that you want to have only one method in your service contract. Why not? But again, I cannot see how this limitation could be helpful.
It would be pretty much as saying: "I want to write a library assembly which exposes exactly one method to the referencing user's assembly". If you want it, do it, only why?
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900