wcf-data-services

WCF Data Services (OData) Vs ASP.NET Web API

风流意气都作罢 提交于 2019-12-03 00:16:38
问题 I am designing a distributed application that will consist of RESTful services and a variety of clients (Silverlight, iOS, Windows Phone 7, etc). Right now I'm determining which technology I should use to implement my services, WCF Data Services (OData) or the new ASP.NET Web API that's coming out with ASP.NET MVC 4. I've watched a few presentations online about each and right now I'm leaning towards WCF Data Services primarily because of the filtering mechanisms built into the URI and native

Problem rolling out ADO.Net Data Service application to IIS

删除回忆录丶 提交于 2019-12-02 20:51:36
I am adding a ADO.Net Data Service lookup feature to an existing web page. Everything works great when running from visual studio, but when I roll it out to IIS, I get the following error: Request Error The server encountered an error processing the request. See server logs for more details. I get this even when trying to display the default page, i.e.: http://server/FFLookup.svc I have 3.5 SP1 installed on the server. What am I missing, and which "Server Logs" is it refering to? I can't find any further error messages. There is nothing in the Event Viewer logs (System or Application), and

How to add single quotes around query string using jqGrid

ⅰ亾dé卋堺 提交于 2019-12-02 16:00:54
问题 I'm using jqGrid to display some data to users. I want this grid to be sortable, but the data jqGrid sends isn't exactly what I need. Here is the query string jqGrid sends now: http://local/MyService.svc/GetData?_search=false&nd=1313069918597&rows=50&page=1&sidx=ColumnName&sord=asc But my service needs it to be: http://local/MyService.svc/GetData?_search=false&nd=1313069918597&rows=50&page=1&sidx='ColumnName'&sord='asc' Notice the single quotes around ColumnName and asc There are tons of

WCF Data Services (OData) Vs ASP.NET Web API

故事扮演 提交于 2019-12-02 15:42:23
I am designing a distributed application that will consist of RESTful services and a variety of clients (Silverlight, iOS, Windows Phone 7, etc). Right now I'm determining which technology I should use to implement my services, WCF Data Services (OData) or the new ASP.NET Web API that's coming out with ASP.NET MVC 4. I've watched a few presentations online about each and right now I'm leaning towards WCF Data Services primarily because of the filtering mechanisms built into the URI and native hypermedia capability. The only downside I can see is the verbosity of the Atom Pub specification as

Paging with WCF data service

主宰稳场 提交于 2019-12-02 03:52:46
问题 My question is about how you handle paging with a WCF data service. The way I want to use it, is execute a query (passing page size and current page), and get back the results of that query and also the paging information like total number of pages, current page number and page size. This paging information is used by the client (which is another service that transforms the result to JSON for a mobile application that consumes it) to handle next/previous buttons. However, using LINQ on a WCF

Paging with WCF data service

≡放荡痞女 提交于 2019-12-01 23:48:21
My question is about how you handle paging with a WCF data service. The way I want to use it, is execute a query (passing page size and current page), and get back the results of that query and also the paging information like total number of pages, current page number and page size. This paging information is used by the client (which is another service that transforms the result to JSON for a mobile application that consumes it) to handle next/previous buttons. However, using LINQ on a WCF data service is too limited, it doesn't support the LINQ expression I need. I tried creating a service

How to host WCF Data Service (OData) in IIS7?

坚强是说给别人听的谎言 提交于 2019-12-01 22:31:22
问题 Does anyone know how to host a WCF Data Service (or OData) inside IIS7? I'm seeing lots of articles about hosting WCF, but none specific to WCF Data Service. Thank you very much. 回答1: Hosting a WCF Data Service in IIS is actually the default option. Its a pretty easy 3 step process: Create a new WebApplication project (or re-use an existing one) Add a WCF Data Service to the project Deploy to your IIS server Step 3 is just the standard process for deploying a WebApplication to IIS. 回答2: A WCF

JQGrid with WCF Data Services (OData); loadBeforeSend not called on Edit mode; Cannot do setRequestHeader

故事扮演 提交于 2019-12-01 20:27:51
问题 I am having a bit of a problem with this fantastic jqgrid plugin and my attempt to use it with WCF Data Services (not really, but the very similar odata4j services). By the way, if anyone is thinking about using jqgrid with odata services, please send me a line, I found answers to difficult questions like, for example, how to configure the grid xmlreader to read an odata xml structure defeating the jquery namespace search issue ( hints: include jquery.xmlns.js ..... $.xmlns.m = "http:/

JQGrid with WCF Data Services (OData); loadBeforeSend not called on Edit mode; Cannot do setRequestHeader

你说的曾经没有我的故事 提交于 2019-12-01 19:57:36
I am having a bit of a problem with this fantastic jqgrid plugin and my attempt to use it with WCF Data Services (not really, but the very similar odata4j services). By the way, if anyone is thinking about using jqgrid with odata services, please send me a line, I found answers to difficult questions like, for example, how to configure the grid xmlreader to read an odata xml structure defeating the jquery namespace search issue ( hints: include jquery.xmlns.js ..... $.xmlns.m = "http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"; $.xmlns.d = "http://schemas.microsoft.com/ado/2007

How can I keep Entity Framework from generating inefficient queries in SQL Server?

≡放荡痞女 提交于 2019-12-01 17:47:12
I have an entity defined in an EF 4.0 that is based on a view. The view lays over a table with about 18 million rows of data. I have selected the 4 deterministic properties of the entity as a compound Entity key for this entity. I have exposed access to the model containing this view via an OData WCF data service. The WCF Data service is set to limit results like so config.SetEntitySetPageSize("*", 100) When I make a basic query against this view: var fcbs = this.iBenchmarkCostContext.FtCostBenchmarks.ToArray(); This is the query that I see in my profiling tool: SELECT TOP (100) [Extent1].