露出了.NET类库(其中CRUD操作,主要定义)作为一种服务 [英] Exposing a .NET class library (which primarily defines CRUD operations) as a service

查看:155
本文介绍了露出了.NET类库(其中CRUD操作,主要定义)作为一种服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是最好的,高效的和最快的揭露现有的(类)库(其中CRUD操作,主要定义)作为服务 WCF服务的方式 WCF数据服务),使其可与的Silverlight 阿贾克斯。是否有工具(code发电机,RAD工具),它可以支持呢? 在此先感谢您的帮助和提示。

What is the best, efficient and fastest way to expose an existing (class) library (which primarily defines CRUD operations ) as a service (WCF Service or WCF Data Service), so that it can be used with Silverlight or Ajax. Are there tools (code generators, RAD tools), which can support this ? Thanks in advance for your help and hints.

推荐答案

最好的方法是使用WCF自己创建一个包装。

The best approach is to use WCF to create a wrapper yourself.

您应该这样做,而不是使用一些自动化干脆直接暴露库,因为:

You should do this, rather than using some automation to just expose the library directly because:

  • 安全,你要的人打电话给图书馆随时随地的什么?
  • 在大多数图书馆假设他们被直接调用,而不是通过服务(见的企业发展谬论)。
  • WCF是默认情况下无状态:你需要找出如何管理图书馆承担任何状态(你将不再有单一的客户端)
  • 在我提到的安全性?
  • Security, do you want anyone to call anything on the library anytime?
  • Most libraries assume they are called directly rather than over a service (see fallacies of enterprise development).
  • WCF is by default stateless: you need to work out how to manage any state the library assumes (you will no longer have a single client).
  • Did I mention security?

这篇关于露出了.NET类库(其中CRUD操作,主要定义)作为一种服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆