如何用多个参数编写[WebGet]方法 [英] How can write [WebGet] Method with multiple perameter

查看:54
本文介绍了如何用多个参数编写[WebGet]方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ADO.net实体数据模型处理WCF数据服务

i需要编写多个参数的WCF [WebGet]方法



请帮助



thnx ...

i am working on WCF Data service with ADO.net Entity data model
i need to write WCF [WebGet] method whith multiple perameter

Please help

thnx...

推荐答案

好吧,如果我理解你的问题那么,

Well, if I understood your question correctly then,
[OperationContract]
[WebGet(UriTemplate = "RecoverPassword?email={email}&secQues={securityQuestion}&secAns={securityAnswer}")]
string RecoverPassword(string email, string securityQuestion, string securityAnswer);





-KR



-KR


你好@DipsMak,你看到这里 [ ^ ]?



希望有所帮助。
Hi @DipsMak, Did you see here[^]?

Hope it helps.


这篇关于如何用多个参数编写[WebGet]方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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