WPF客户端使用OData与ASP.NET Web API交互 [英] WPF Client Interacting With ASP.NET Web API Using OData
问题描述
亲爱的技术人员
我是WPF,Asp.net Web API,REST和OData的新手。
我需要在一个项目中工作,其中WPF是客户端(MVVM),它利用托管在Web服务器上的RESTful服务(使用Asp.net Web API)进行通信OData的。是否有人能够为我提供一个非常小的样本(只有一个或两个数据库字段和服务来选择/添加/更新/删除和消费者wpf mvvm UI)。或者将我指向网络上的资源。我一直在搜索,但由于信息丰富而感到困惑。
感谢您的帮助。
问候
Jay
Dear Techies
I am new to WPF , Asp.net Web API , REST and OData.
I need to work in a project where WPF is the client (MVVM) that utilizes RESTful services hosted on a Web server (Using Asp.net Web API) communicating using OData. Would any one be kind enough to provide me a very small sample (Just one or two database fields and services to select/add/update/delete and a consumer wpf mvvm UI). Or point me to a resource on the web. I have been searching but getting confused due to information abundance.
Appreciate your help.
Regards
Jay
推荐答案
您好,
您需要创建Web API和在本地或IIS托管它。
使用HTTP客户端将JSON格式的参数传递给服务。
请参阅以下链接。
https: //msdn.microsoft.com/en-us/library/windows/apps/xaml/hh781239.aspx [ ^ ]
这篇关于WPF客户端使用OData与ASP.NET Web API交互的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!