简体   繁体   English

集成Silverlight和现有的asp.net应用程序时会遇到复杂问题吗?

[英]Complications in integrating Silverlight and existing asp.net application?

I am new to silverlight, WCF RIA services. 我是Silverlight,WCF RIA服务的新手。 We have a medium size financial business web application. 我们有一个中等规模的金融业务Web应用程序。 There is a lot of code. 有很多代码。 The code is well organized with lots of business objects, web controls, web forms, Data Access layer, Business logic layer. 该代码井井有条,包含许多业务对象,Web控件,Web表单,数据访问层,业务逻辑层。

There is a requirement for some enhancements to the web application and one of the team member wants to use silverlight to improve UI and responsiveness. 需要对Web应用程序进行一些增强,并且其中一个团队成员希望使用silverlight来改善UI和响应能力。

We tried to integrate a small silverlight application in the web application, But what I found is we copy the xap file and it always opens the Main form. 我们试图将一个小型Silverlight应用程序集成到Web应用程序中,但是我发现我们复制了xap文件,并且该文件始终会打开Main表单。

how can we open other silverlight controls? 我们如何打开其他Silverlight控件?

How can we use the business objects and business logic with the silverlight as the silverlight supports on silverlight class library? Silverlight在Silverlight类库上支持的情况下,我们如何在Silverlight中使用业务对象和业务逻辑?

How can we use the existing data access library? 我们如何使用现有的数据访问库?

How can we connect to the database? 我们如何连接到数据库? I saw WCF RIA services, all the examples I saw with entity framework and we use oracle and the cannot use the beta version of oracle entity framework? 我看到了WCF RIA服务,以及在实体框架中看到的所有示例,我们使用了oracle,而不能使用beta版的oracle实体框架吗?

how to pass data to & from silverlight app to asp.net? 如何将数据传递到Silverlight应用程序和从Silverlight应用程序传递到asp.net?

There maybe some other issues which I am unaware. 可能还有其他一些我不知道的问题。

Thanks, Naveen 谢谢,Naveen

how can we open other silverlight controls? 我们如何打开其他Silverlight控件?

You would create a Navigation Framework based Silverlight application. 您将创建一个基于Navigation Framework的Silverlight应用程序。 This allows the use of a path following # in the URL to navigate to other pages within the Silverlight application. 这允许使用URL中#后面的路径导航到Silverlight应用程序中的其他页面。

How can we use the business objects and business logic with the silverlight as the silverlight supports on silverlight class library? Silverlight在Silverlight类库上支持的情况下,我们如何在Silverlight中使用业务对象和业务逻辑?

You won't be able to use them directly. 您将无法直接使用它们。 Here you would create a Silverlight WCF service to access your business objects, you keep the business objects on the server. 在这里,您将创建一个Silverlight WCF服务来访问您的业务对象,并将业务对象保留在服务器上。

How can we use the existing data access library? 我们如何使用现有的数据访问库?

You don't, you are going via WCF to your business objects which are on the server and from there on to your data. 并非如此,您将通过WCF到达服务器上的业务对象,再从那里到数据。

How can we connect to the database? 我们如何连接到数据库? I saw WCF RIA services, all the examples I saw with entity framework and we use oracle and the cannot use the beta version of oracle entity framework? 我看到了WCF RIA服务,以及在实体框架中看到的所有示例,我们使用了oracle,而不能使用beta版的oracle实体框架吗?

As above, the Silverlight app only sees your specialist WCF Service. 如上所述,Silverlight应用程序只能看到您的专业WCF服务。

how to pass data to & from silverlight app to asp.net? 如何将数据传递到Silverlight应用程序和从Silverlight应用程序传递到asp.net?

You can do that via your business objects and/or your new WCF Service. 您可以通过业务对象和/或新的WCF服务来实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM