且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

与RESTful Services中的客户端共享业务对象

更新时间:2023-11-30 12:54:40

好吧,这实际上不是在客户端应用程序中使用REST服务的方式. REST服务调用是纯HTTP调用,它以XML/JSON格式返回数据.

请查看下面的链接,以获取有关" REST "的信息.

http://en.wikipedia.org/wiki/Representational_state_transfer

http://msdn.microsoft.com/en-us/library/dd203052.aspx

http://msdn.microsoft.com/en-us/netframework/cc950529

您可以将多层体系结构用于您的业务逻辑和数据访问代码.

C#.NET中的三层体系结构

设计模式的选择完全取决于您的业务需求,我建议您确保您正确地遵循了面向对象编程的基础.

面向对象编程概念(OOP)和更多内容的介绍
Well, this is really not how REST services are consumed in Client Application. REST service call is a pure HTTP call which returns Data in a XML/JSON format.

Have a look at below links for information on "REST".

http://en.wikipedia.org/wiki/Representational_state_transfer

http://msdn.microsoft.com/en-us/library/dd203052.aspx

http://msdn.microsoft.com/en-us/netframework/cc950529

You may use Multi-Tier architecture for your Business Logic and Data-Access code.

Three Layer Architecture in C# .NET

Selection of Design Pattern totally depends on your business requirements, I will suggest you just make sure you are following fundamentals of Object Oriented Programming properly.

Introduction to Object Oriented Programming Concepts (OOP) and More