You can use WCF as DAL. However, main purpose of WCF / Web service is to provide data remotely. There are many different scenario you can use WCF. I give you couple of example, say you have a data driven website and you want to use some of this websites
data in another website then you can use WCF/Web service, Or say you want to develop Win app / Silverlight app in this case keep you DB and WCF on server and give reference to to Win app / Silverlight app to consume data, another example is to apps for smart
devices which access these WCF service and consume data.
I hope this helps.
Cheers
Pratik
Marked as answer by Leo Tang - MSFT on Nov 28, 2012 09:25 AM
jazzyhacker
Member
11 Points
103 Posts
WCF Service as Data Access Layer
Nov 22, 2012 04:01 AM|LINK
Is it good to use WCF Service as Data Access Layer?
Thanks in advance.
santosh.jagd...
Star
7625 Points
1454 Posts
Re: WCF Service as Data Access Layer
Nov 22, 2012 04:04 AM|LINK
if you haven't seen these, then please refer. You will have details
http://social.msdn.microsoft.com/Forums/is/wcf/thread/72cc885c-77fd-4831-810c-31481ff26726
http://stackoverflow.com/questions/1678627/moving-data-access-layer-to-wcf-service
MCP
pratiksolank...
Member
271 Points
76 Posts
Re: WCF Service as Data Access Layer
Nov 22, 2012 06:30 PM|LINK
Hi Jazzy,
You can use WCF as DAL. However, main purpose of WCF / Web service is to provide data remotely. There are many different scenario you can use WCF. I give you couple of example, say you have a data driven website and you want to use some of this websites data in another website then you can use WCF/Web service, Or say you want to develop Win app / Silverlight app in this case keep you DB and WCF on server and give reference to to Win app / Silverlight app to consume data, another example is to apps for smart devices which access these WCF service and consume data.
I hope this helps.
Cheers
Pratik