Good day people. I have never posted on these type of sites before, however lets see how it goes.
Today i started working with WCF for the first time, i watched a few screencasts on it and now i am ready to jump into my first solution implementing it. All is well and so far all is working, although my question comes when i create the WCFServiceClient in my calling program/ client.
Lets say in my ServiceContract/ interface defining my methods exposed to the client, there are many methods each related to some entity object. How can i logically group all of the related methods of a particular entity together, so that in my code it would look like
e.g.
WCFServiceClient.Entity1.Insert();
WCFServiceClient.Entity1.Delete();
WCFServiceClient.Entity1.GetAll();
WCFServiceClient.Entity1.GetById(int id);
WCFServiceClient.Entity2.AddSomething();
WCFServiceClient.Entity2.RemoveSomething();
WCFServiceClient.Entity2.SelectSomething();
...
Instead of
WCFServiceClient.Insert();
WCFServiceClient.Delete();
WCFServiceClient.GetAll();
WCFServiceClient.GetById(int id);
WCFServiceClient.AddSomething();
WCFServiceClient.RemoveSomething();
WCFServiceClient.SelectSomething();
I hope this makes sense. I have searched google, i have tried my own logical reasoning, but no luck. Any ideas would be appreciated.
Shot Juan