Click here to Skip to main content
15,894,460 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am developing three tier web application. Tiers are UI, Business Object Layer and Data access layer.
Can I use WCF to implement DAL. Is there any disadvantages and is it recommended ?
Posted

1 solution

I think you can use it to implement DAL, but you cannot implement DAL with WCF along. You can use a WCF service interface as a facade for DAL, so the code using your DAL would do it acting as a WFC client, which you can use to provide a proper abstraction. At the same type, in depth of your DAL implementation, you will need something else to work with actual database, for example, ADO.NET. I think if you look at explanation of DAL, you will clearly see it:
http://en.wikipedia.org/wiki/Data_access_layer[^].

—SA
 
Share this answer
 
v2

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