从Silverlight迁移到Asp.Net [英] Migration from Silverlight to Asp.Net

查看:99
本文介绍了从Silverlight迁移到Asp.Net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我们有一个以MVVM方式在silverlight + wpf上开发的项目。但是,由于某些原因,我们希望将此项目移动到ASP.NET和MVC中。我们的研究表明迁移是可能的,但没有解释。



附加信息:Project是一个CRM项目。



谢谢大家。



Emre。

Hi everyone,

We have a project that was developed on silverlight+wpf with MVVM manner. However, we want to move this project into ASP.NET and MVC due to some reasons. Our researches shows that the migration is possible but, there is no explanations.

Additional Info: Project is a CRM project.

Thanks for everyone.

Emre.

推荐答案

我不相信可以在这个方向上进行有效的自动迁移。原因如下:与ASP.NET相比,Silverlight具有极大的强大功能,受到严格限制的HTTP(无状态!)和HTML标准的严格限制。也就是说,您将在功能上严重降级您的平台。 Silverlight中的许多简单操作都将完全不适用于ASP.NET。



我希望MVVM帮助您将UI与功能的其他方面隔离开来。这是您可以使用的唯一好处。您只需重用与UI无关的部分代码,并从头开始重写所有UI。您现有的Silverlight UI仅可用作参考目的,作为文档。悲伤却是真的。



-SA
I don't believe there can be efficient automated migration in this direction. Here is why: Silverlight in enormously powerful when compared to ASP.NET, which is strongly constrained by draconian limitation of HTTP (stateless!) and HTML standards. That said, you are going to functionally downgrade your platform quite badly. Many things easy in Silverlight will be totally inapplicable to ASP.NET.

I hope, MVVM helped you to isolate UI from other aspects of functionality well. This is the only benefit you can use. You would have to reuse only parts of your code irrelevant to UI, and rewrite all the UI from scratch. Your existing Silverlight UI can be only used for reference purposes, as a document. Sad but true.

—SA


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

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