WCF REST服务模板40(CS)与数据访问样本 [英] WCF REST Service Template 40 (CS) sample with data access

查看:163
本文介绍了WCF REST服务模板40(CS)与数据访问样本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在这里WCF小白。 我正在探索在Visual Studio 2010中的在线模板:WCF REST服务模板40

WCF noob here. I am exploring the online template in Visual Studio 2010: WCF REST Service Template 40

有谁知道一个伟大的样本学习的榜样吗?或者至少点我正确的方向... 我想创建仰视一个雇员从数据库返回一些序列化的员工档案数据的服务。

Does anyone know of a great sample to learn from? Or at least point me the right direction... I am trying to create a service of looking up a EmployeeID from a database to return some serialized employee profile data.

基本上,我想知道去哪里(通过新的方式,WCF 4.0,基于REST,JSON)。 -ConnectionString -QueryString -etc

Basically, I wish to know what goes where (via the newer way, WCF 4.0, RESTful, Json). -ConnectionString -QueryString -etc

希望这个URL将是这个样子: 的http://本地主机:55123 / EmployeeService的/ EmployeeLookup / {}雇员

Hoping the Url will look something like this: http://localhost:55123/EmployeeService/EmployeeLookup/{EmployeeID}

当然,我的下一个任务是消耗在一些网页上的服务。

My next task of course would be to consume the service in some webpage.

感谢您提前为指导。

推荐答案

观看此视频:

http://channel9.msdn.com/Events/TechEd/NorthAmerica/ 2011 / MID307

它给你的正是你正在寻找的概述,并伴随code样本。

It gives you exactly the overview you are looking for and has accompanying code samples.

这篇关于WCF REST服务模板40(CS)与数据访问样本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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