Click here to Skip to main content
15,916,835 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have web application, there I want to create class that will have method(Insert,Update,Delete) and properties.


Please suggest WCF create or Normal Class.Which will be good and fast.


Thanks
Seema
Posted

WCF is a communication strategy that you should use if you want to expose your functionality to other applications \ clients.

If you just want some functionality within your web application, then just use a normal class. Your web application can consume this no problems, there's absolutely no need to use a WCF service.

If you want other applications to be able to access your code, then use a WCF class. WCF will be a little bit slower than a 'Normal Class' simply because there's a bit of overhead involved when setting up the communication channels etc.
 
Share this answer
 
Comments
thatraja 8-Nov-11 6:50am    
Fine answer, 5!
You are comparing two things that cannot be compared.

What are you trying to do?
If you have direct access to the database, then you don't really need WCF services unless you want to expose some features of your data access layers to a third party.
 
Share this answer
 
Comments
thatraja 8-Nov-11 6:50am    
5!
Abhinav S 8-Nov-11 6:59am    
Thanks thatraja.

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