WCF Service with asp.net mvc application

前端 未结 2 1377
野性不改
野性不改 2020-12-12 09:34

I have started using asp.net MVC and as traditional way I want to keep my data access layer in WCF service. How can I achieve that using asp.net MVC ?

Scenario

相关标签:
2条回答
  • 2020-12-12 10:25

    Short Answer:

    You just need to move your dataaccess layer into a WCF service, expose it and then call it from your MVC application.

    Long Answer:

    1) I recommend going through Scott Guthrie's Nerd Dinner walkthrough to get a really good understanding of MVC basics.

    2) The following blog goes through the process of writing a Layered ASP.NET MVC Applicaiton with a WCF Service (Parts III & IV specifically concentrate on WCF & MVC interaction):

    • Part I (General Concepts)
    • Part II (Building a Repository)
    • Part III (Building The Service)
    • Part IV (Using The Service)

    I haven't read the linked arrticles in detail (just skimmed them) but they seem to give a decent overview of the process.

    0 讨论(0)
  • 2020-12-12 10:26

    Asp.net MVC Application With Wcf Service http://patilranjeet.blogspot.in/2014/11/aspnet-mvc-with-wcf-sample.html

    0 讨论(0)
提交回复
热议问题