Answered by:
Common WCF Data services

Question
-
Hai All,
I have designed my project with MVVM Pattern,
I have Silverlight enabled WCF service for each and every page in the Project. Without creating WCF services for all the pages,
I want to create a common WCF Service.For example
I have Page1.svc for Page1, Page2.svc for page2.
I want to create Common.svc which inherits Page1.cs
and Page2.cs.
I am new to WCF services.Pl. anybody give me the idea on this
Monday, October 17, 2011 6:02 AM
Answers
-
Hi P,
The same idea, I implement Generic Repository pattern you can download and try.
Creating a WCF Data Service class for each entity type could result in a lot of redundant code. However, this feature that you need is hard for maintenence. CodeFirstEF.
https://skydrive.live.com/?cid=b692c2cbad70a05c&sc=documents&uc=1&id=B692C2CBAD70A05C%21127
Friday, October 21, 2011 3:42 AM
All replies
-
Create a Single WCF Service Call The Service in Both Of the Pages
Merge The Methods in Two WCF Services into Single Service
I have Silverlight enabled WCF service
If It is a SL Enabled WCF then you no need to Define Interface Separatly. you can Write the Operation Directly in the WCF Service and Add this WCF Service in your SL Project...
Tuesday, October 18, 2011 12:58 AM -
Hai,
Thanks for your reply. But I cant able to get clear idea on what you are saying.
Pl. give me a simple example for this.
Regards
Priya Jaikumar
Tuesday, October 18, 2011 4:32 AM -
Hi priyajaikumar,
I suggest you to refer to the link below:
http://www.codeproject.com/KB/silverlight/4StepsSilverLight.aspx
Hope it can help
Wednesday, October 19, 2011 1:53 AM -
Hi P,
The same idea, I implement Generic Repository pattern you can download and try.
Creating a WCF Data Service class for each entity type could result in a lot of redundant code. However, this feature that you need is hard for maintenence. CodeFirstEF.
https://skydrive.live.com/?cid=b692c2cbad70a05c&sc=documents&uc=1&id=B692C2CBAD70A05C%21127
Friday, October 21, 2011 3:42 AM