问题描述
此技术如何与WCF RIA服务集成? 它只是"工作吗?" :)
How does this technology integrate with WCF RIA Services? Does it just "Work?" :)
谢谢,
Michael
推荐答案
使用Code First with RIA Services查看这篇文章:
http://social.msdn.microsoft.com/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服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!