.NET 和 AMF [英] .NET and AMF

查看:13
本文介绍了.NET 和 AMF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何让 ASP.NET (inc MVC) 应用程序通过 AMF 与 Flex UI 通信.我想一次推送大约 100 多条记录,AMF 似乎是前进的方向,但似乎没有任何明显的迹象.

How can I get a ASP.NET (inc MVC) application talking to a Flex UI over AMF. I am wanting to push approx 100+ records around at a time and AMF would appear to be the way forward, but there doesn't appear to be anything obvious.

推荐答案

如果时间紧迫,您可以只使用 RemoteObject 来访问已编译的 DLL(例如 WebORB - 它对于 .NET 是免费的,但您需要一个VS 复制上面的 Express 来编译你想要暴露给 Flex 的类)

If you're pressed for time, you can just use the RemoteObject to hit a compiled DLL (like WebORB - its free for .NET, but you need a VS copy above Express to compile your classes that you want to expose to Flex)

并以这种方式检索对象...

and Retrieve the object that way...

显然,您的对象应该有一个 DAL 或生成一个 DAL,以便您可以与您的数据库进行通信.

Obviously your objects should have a DAL in place or be generated so you can communicate with your database.

但我建议将 Cairngorm 用于任何数据密集型 Flex 应用程序.这并不简单,开发也不会那么快,但是一旦你理解了它,事情就会变得更加顺畅,而且感觉很好.我可以深入了解细节,但有些人比我聪明得多,他们已经深入地解释过了.像您这样的人应该能够很快掌握这些概念.

But i suggest using Cairngorm for any data intensive Flex application. It isn't simple and development won't feel as fast, but once you understand it, things go alot smoother and it just feels right. I could go into the details, but there are people that are much smarter than I am that have already explained it, in depth. Someone like yourself should be able to grasp the concepts pretty quickly.

这里是学习 WebORB 和 Cairngorm 的链接:

here are the links to learning WebORB and Cairngorm:

这篇关于.NET 和 AMF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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