Silverlight 4.0 与自定义 (netTiers) 业务对象的数据绑定
我正在尝试使用 VS 2010 将数据从 netTiers BO 架构绑定到 Silverlight 4.0 网格。我只见过使用 RIA 和实体框架的示例。如何将 RIA 服务连接到自定义 BO/DAL 层?我还尝试将 Silverlight 添加为 WCF 服务模板,但它也没有绑定数据。似乎服务(无论是 RIA、WCF Silverlight 模板还是普通 WCF)都没有被调用。
I am attempting to bind data from a netTiers BO architecture to a Silverlight 4.0 grid using VS 2010. I have only seen examples using RIA with Entity Framework. How do I wire up RIA services to a custom BO/DAL layer? I have also tried adding the Silverlight as a WCF Service template which did not bind the data either. It appears as though the service, whether RIA, WCF Silverlight Template, or vanilla WCF is not getting called.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
到目前为止,我发现使用 RIA 执行非 EF 操作非常困难...我仍在学习,但我确实读到必须将 SVC 端点连接到客户端。我已经在几个项目中使用了 nettiers,但不幸的是,它们没有跟上 .net 世界的最新发展,这使得将其融入应用程序变得越来越困难。根据您的时间范围,仅使用 EF 和 Ria 服务可能会更好。它与 nettiers 不同,但它在幕后做了很多相同的事情,而且设置起来超级简单。
I found it very hard to do non EF with RIA so far...I am still learning, but I did read that you have to connect the SVC endopoint into the client. I have used nettiers for several projects, but unfortunately they are not keeping up with more recent developments in the .net world and its making it harder and harder to wedge it into an application. Depending on your timeframe, you may be better off just using EF and Ria Services. Its different than nettiers, but it does a lot of the same behind the scenes stuff and its super easy to setup.