Tagged Questions

1
vote
2answers
94 views

Entity Framework 5 with custom Models and OData - Web API

I'm evaluating some technologies for a new Web Application. Which should use EF5 and Knockout JS with Web API. I wanted to take advantage of the OData feature, when returning IQueryable, but am ...
1
vote
1answer
37 views

Possible to manually apply OData parameters to result of `.AsQueryable()`?

I have a MVC4 WebAPI controller that returns an IQueryable, and therefore I can use $filter and friends in the URL to manipulate the result from the REST endpoint. Here's my controller: public class ...
0
votes
0answers
11 views

Secure authentication by both u\p stored in database and Active Directory

I am trying to implement a web app with ASP.NET, SQL Server 2008 R2 and WCF Data Services. Each user in my database has a property which says whether the authentication should be done using the user ...
0
votes
0answers
23 views

Dynamically Adapting EDMX Definition at Runtime

We have an EF edmx file in use to define the conceptual model of db. This is than used to access the database from our odata provider. The problem at hand is we have found that due to the size (very ...
0
votes
1answer
36 views

Using OData substringof with Linked Model Property

Using the odata substringof method like so: filter=substringof('" + $("#txtSearch").val() + "',Postcode) eq true Which is ok, but if I want to search against a linked property like so: ...
0
votes
2answers
66 views

OData services don't return the default order in which the items are present in the db

I am using OData services for my Web Api to provide pagination to my client app. This is the code for one of my controller methods. // Get all Categories [HttpGet] [ActionName("all")] ...
1
vote
2answers
104 views

OData result with an empty list(Zero count) results in an error

I have implemented OData for querying the list generated by my API. But some times the list is empty and the OData Result should just return an empty json but it doesnt. Instead it throws up the ...
1
vote
2answers
101 views

How to apply paging specifically to a list which is part of a JSON using asp.net OData protocol

Below is a get method in my controller. It returns a JSON containing boolean "success', string "message" and a list. How can i query the list using OData? Generally if the return type was IQueryable ...
0
votes
0answers
114 views

Building Asp.net Dynamic Data Web Application Over LightSwitch OData Service

Im having an OData Service exposed from LightSwitch im trying to register the context of asp.net data dynamic web application over the Service northwindData context = new LSService.northwindData(new ...
0
votes
1answer
110 views

WCF Data Services syndication field missing from client-side proxy on MVC project

We're using WCF Data Services (.NET 4 currently - planning to upgrade to WCF Data Services 5 at some point) to expose some data from a SQL DB. We're projecting that data, server-side, into a public ...
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 ...
1
vote
1answer
140 views

How do I filter with OData based on an inner array?

So I created a controller using the mvc4 web api where the url (Get) “/api/things” return the following data: <ArrayOfThing> <Thing> <Id>1</Id> ...
0
votes
1answer
158 views

WCF Data Services ODATA

I am working on WCF Data Services. I have a function in my service which adds a record into a table in SQL DB and return the ID of the Inserted record. I Used to Pass the values to be inserted in the ...
0
votes
4answers
658 views

handling large datasets in web api & odata

I have been working with asp.net web api over recent weeks with great success. It has really assisted me with producing an interface for mobile clients to programme against over http. I reached a ...
0
votes
3answers
396 views

Specify datetime format for WCF Data Service

Is there a way to specify the formatting of DateTime data returned by a WCF data service? This question seems to say that the default format, which looks like /Date(1339515455030)/, is the number of ...

1 2 3
15 30 50 per page