If WCF is in a MVC application, should it use the controller to access the database to keep 'DRY'

后端 未结 3 1757
谎友^
谎友^ 2021-01-14 20:07

I have an MVC application that accesses SQL and Windows Azure. The logical flow looks like this:

Person <--> View <--> Controller.ConvertPerson         


        
3条回答
  •  南方客
    南方客 (楼主)
    2021-01-14 20:13

    I know it's a tangent, but if you're mixing WCF and ASP.NET MVC, you should at least be aware of OpenRasta. A good start is this Herding Code podcast with the main contributor.

    (No, this is not even intended to answer your actual question!)

提交回复
热议问题