WCF RIA服务?

编程入门 行业动态 更新时间:2024-10-12 20:27:53
本文介绍了WCF RIA服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

此技术如何与WCF RIA服务集成?它只是"工作吗?" :)

How does this technology integrate with WCF RIA Services? Does it just "Work?" :)

谢谢,

Michael

推荐答案

Michael,

使用Code First with RIA Services查看这篇文章: social.msdn.microsoft/Forums/en-US/adonetefx/thread/0e741f7f-700f-4efd-b10c-98f050f76c85

帖子适用于CTP4但是s可以使用CTP5进行一些更改。 一种变化是访问底层ObjectContext的方式,现在由DbContext在显式实现的IObjectContextAdapter接口上公开。 帖子中的ObjectContext属性现在可以实现为:

The post is for CTP4 but should work with CTP5 with some changes. One change is the way you access the underlying ObjectContext which is now exposed by DbContext on the explicitly implemented IObjectContextAdapter interface. The ObjectContext property from the post could now be implemented as:

public ObjectContext ObjectContext

public ObjectContext ObjectContext

{

{

get

get

{

{

return (( IObjectContextAdapter ) this )。ObjectContext;

return ((IObjectContextAdapter)this).ObjectContext;

}

}

}

}

我们将在不久的将来创建有关在CTP5中使用RIA服务的进一步指导。 我会在发布该指南时再次回复此主题并附带链接。

We will be creating further guidance on using RIA Services with CTP5 in the near future. I will reply again to this thread with a link when that guidance is posted.

谢谢,

Arthur

更多推荐

WCF RIA服务?

本文发布于:2023-11-07 10:33:07,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1566220.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:WCF   RIA

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!