使用wcf的MVC应用程序 [英] MVC application with wcf
本文介绍了使用wcf的MVC应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
我是wcf和mvc的新手,我需要使用这两种技术开发新的应用程序,但可能我无法决定最好的架构设计所以任何人都可以描述行业中的建筑设计。
提前感谢
Hello,
I am new to wcf and mvc and i need to develop new application with using these two technology but Probable I can not decidebest architecture design for this so can anyone describe what architectural design following in industry.
thanks in advance
推荐答案
Hi ExpertITM,
我建议为您的应用选择N层架构,
我使用的是什么架构
1)表示层 - MVC项目(用户界面)
2)代理层 - C#库应用程序(从表示层引用服务层)
3)服务层 - WCF服务(SSL集成可选)
4)业务层 - C#库应用程序(此处实现所有业务逻辑)
5)数据访问层 - C#库应用程序(数据)访问信息在这里实现)
6)公共层 - C#库应用程序离子(这里实现的通用功能是对所有层的引用)
参考就像是
1 - - > 2 - > 3 - > 4 - > 5
6 - > 1,6 - > 2,6-> 3,6 - > 4,6 - > 5(普通图层是指所有图层)
我希望这对你有所帮助。
谢谢,
RK
Hi ExpertITM,
I suggest to choose N-Tier architecture for your application,
What architecture I have used is
1) Presentation layer - MVC project (User Interface)
2) Proxy Layer - C# library application (Reference to the service layer from presentation layer)
3) Service layer - WCF Service(SSL integrated optional)
4) Business Layer - C# library application(All business logic are implemented here)
5) Data Access Layer - C# library application (Data access information are implemented here)
6) Common layer - C# library application (Common functionalities are implemented here which references to all layer )
References is like
1 --> 2 --> 3 --> 4 --> 5
6 --> 1,6 --> 2, 6--> 3,6 --> 4,6 --> 5(common layer refers to all layers)
I hope this help you a bit.
Thanks,
RK
这篇关于使用wcf的MVC应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文