适用于visual studio 2008的非EF WCF数据服务的示例代码 [英] sample code for non EF WCF Data Service, for visual studio 2008

查看:78
本文介绍了适用于visual studio 2008的非EF WCF数据服务的示例代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我无法让我的WCF数据服务应用正常运行,并希望看一些示例代码。

I'm having trouble getting my WCF Data Service app working and would like to take  a look at some sample code.

任何人都可以指向我的博客/屏幕演员等 - 理想情况下,我可以在VS.net 2008中下载并运行一些代码 - 使用自定义数据源演示WCF数据服务吗?

Can anyone point me to a blog /screen cast etc - ideally something that has some code that I can download and run in VS.net 2008 - that demonstrates WCF Data Services using a custom datasource?

 

干杯

推荐答案

如果你想要一个使用反射提供者的简单服务(基于内存的CLR实体),那么例如这篇博文:

http://blogs.msdn.com/ b / alexj / archive / 2010/06 / tip / 56-writing-an-odata-service-using-the-reflection-provider.aspx
 以及这篇msdn文章:
http://msdn.microsoft.com/en-us/library/dd723653.aspx

If you want a simple service using reflection provider (in-memory CLR based entities), then for example this blog post: http://blogs.msdn.com/b/alexj/archive/2010/06/11/tip-56-writing-an-odata-service-using-the-reflection-provider.aspx and this msdn article: http://msdn.microsoft.com/en-us/library/dd723653.aspx

如果您正在寻找完整的自定义数据服务提供商,那么这些示例是OData Provider Toolkit的一部分:
http://www.odata.org/developers/odata-sdk 。你开始的一个很好的演练是在工具包中,或者在这里:

http://blogs.msdn.com/b/alexj/archive/2010/01/07/data-service-providers-getting-started.aspx

If you're looking for full blown custom data service provider, then the samples are part of the OData Provider Toolkit here: http://www.odata.org/developers/odata-sdk. A nice walkthrough to et you started is in the toolkit, or here: http://blogs.msdn.com/b/alexj/archive/2010/01/07/data-service-providers-getting-started.aspx

如果您更详细地描述您的问题,我们也可以提供帮助。

If you describe your problem in more detail, we might be able to help as well.

谢谢,


这篇关于适用于visual studio 2008的非EF WCF数据服务的示例代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆