Tagged Questions
0
votes
1answer
21 views
Can I use a complex datatype with an EF-provided WCF Data Services without telling EF about it?
I am using an Entity Framework-provided WCF DataService to expose an OData endpoint. I want to create a Service Operation that returns a new type. But I get:
The exception message is 'Unable to ...
0
votes
2answers
46 views
Update on any properties with odata
Do you know how I could update an entity in WCF Data Services with OData syntax without the key property of the entity.
For example, an entity:
public class Product
{
[Key]
public int Id { ...
3
votes
1answer
82 views
Implementing WCF Data service OData Actions
I've read WCF Data Service 5.0 release notes, which mentions the implementation of OData Actions (not service methods).
After analyzing a tutorials I arrived to the conclusion that I need to build ...
2
votes
1answer
58 views
WCF OData Service method with invariant typed collection
I'm trying to use WCF OData Services 5.2 to publish service methods, which should return a collection of derived types (POCO objects):
public class WcfDataService1 : DataService<MyProvider>
...
1
vote
0answers
99 views
Microsoft.Data.OData.ODataContentTypeException: A supported MIME type could not be found that matches the content type of the response
I'm getting following exception
Microsoft.Data.OData.ODataContentTypeException:
A supported MIME type could not be found that matches the content
type of the response. None of the supported ...
1
vote
1answer
37 views
How to create a primary key on a column in SQL Server or how to import a view without PK in EDM designer?
I have a linked server on my SQL server that links to the Active Directory. I created a view that selects relevant information about the users from AD. This view does not have a primary key.
Now I ...
1
vote
0answers
65 views
OData & Entity framework adding extra where clauses to all queries
I have an OData endpoint hooked up to Entity Framework to expose DataServices but I'd like to shape the data that comes out based on some metadata at runtime to make the query more restrictive than ...
0
votes
1answer
53 views
WinPhone7 OData app crashing on WinPhone8 with System.Data.Services.Client
I've got a Windows Phone 7 application that crashes on Windows Phone 8 devices. This is happening with identical XAPs (asserted both by downloading app in the market and deploying from local machine). ...
9
votes
2answers
221 views
Can I use OData client code inside a Portable Class Library?
I'm trying to build a portable class library targeting .NET, Silverlight, Windows RT and Windows Phone that acts as an OData client. I'm using Visual Studio 2012.
When I created the service ...
2
votes
1answer
86 views
Is it possible to stream entities over OData?
I'm brand new to OData, so please bear with me.
Assuming that I'm using IQueryable<> with OData, and the number of records generated by the server is large (say 10000), is it possible to start ...
1
vote
1answer
122 views
How can I create an odata service? [closed]
I wanted to create an Odata service like the url below:
http://data.stackexchange.com/stackoverflow/atom
Unfortunately I am not a .NET guy. Is there a way I can create an oData service in jQuery or ...
0
votes
0answers
83 views
OData (WCF Data Services) Continuation on a query that uses projection
I have an OData query that looks like this:
var query = entities.MyObjects.Select(x => new {x.MyObjectID, x.Number, x.Name});
When I run it I get only 100 items back. That is because my server ...
2
votes
0answers
237 views
What is a real life cycle of WCF OData service?
I'm developing server application with several WCF OData services hosted (C# 4.0, VS2010).
I'm observing quite strange behavior of services and can't find any documentation on it that describes things ...
2
votes
1answer
218 views
Calls to WCF Service occasionally hang
The issue was originally encountered on a WCF Data Service (OData) where a large amount of data was being returned (~3MB) and the application consuming the data (an MVC website) would sporadically ...
0
votes
1answer
140 views
For OData queries, is $filter guaranteed to execute before $skip?
I could not find mention in the OData protocol documentation if a $filter operation is always applied before a $skip operation. Clearly, it makes sense to do so when implementing a consistent page ...