Click here to Skip to main content
15,896,547 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This is V.Phani Kumar presently working on mobile developement,
I am working on WCF.
I would like how to make a database connection code in WCF.

Thanks & Regards,
V.Phani Kumar
Posted
Updated 27-Dec-10 20:45pm
v2
Comments
Nilesh Kshetre 22-Feb-11 7:08am    
Please Send me Code How to Insert Video(Through Web Cam) From DataBase In Silverlight Application
(nileshkshetre@rediffmail.com,nileshkshetre.34@gmail.com)

Hi,

Database connection is part of ADO.NET not of WCF.You can create a separate database layer to handle db transaction and call its methods in methods implemented of operation contact.For error handling Use fault contract with WCF.
 
Share this answer
 
Comments
Nilesh Kshetre 22-Feb-11 7:08am    
Please Send me Code How to Insert Video(Through Web Cam) From DataBase In Silverlight Application
(nileshkshetre@rediffmail.com,nileshkshetre.34@gmail.com)
hi,

If the service contract has to connect to the database, How should we write the code should we factory classes for database connections or else any specific libraries for the database connection in WCF.

Thanks and regards
V.Phani Kumar
 
Share this answer
 
Comments
vivekse 28-Dec-10 3:42am    
Please share some code or example to explane your question.
Nilesh Kshetre 22-Feb-11 7:09am    
Please Send me Code How to Insert Video(Through Web Cam) From DataBase In Silverlight Application
(nileshkshetre@rediffmail.com,nileshkshetre.34@gmail.com)

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