问题描述
您好,
我正在开发一个在ASP.NET MVC项目中托管的Silverlight项目。目前我只有两个项目,UI.Web和UI.Silverlight。我想添加一个RIA服务来访问silverlight中的数据库。我创建了一个名为
UI.Data的新类库项目,该项目目前包含我的实体框架数据模型。我的问题是我应该为托管RIA服务制作什么项目?如何才能使DomainService能够自动生成在Silverlight中使用RIA服务
所需的元数据文件?设置解决方案的正确方法是什么,以便将事物分开?
我希望我的解决方案看起来如何:
- [UI.Data] - 类库
- [UI.DataService] - ???
- [UI.Web] - ASP.net MVC
- [UI.Silverlight] - Silverlight 4
Hello,
I am developing a silverlight project that is hosted in a ASP.NET MVC project. Currently I only have two projects, UI.Web and UI.Silverlight. I want to add a RIA service to access a database in silverlight. Ive created a new Class Library project called UI.Data, which currently has my Entity Framework Data Model inside. My questions is what project should I make to host the RIA service and how can I make it so that the DomainService can auto-generate the metadata file that is required to use the RIA service in silverlight? What is the proper way to setup the solution so that things are seperated?
How I would like my Solution to look:
- [UI.Data] - Class Library
- [UI.DataService] - ???
- [UI.Web] - ASP.net MVC
- [UI.Silverlight] - Silverlight 4
这篇关于Silverlight项目架构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!