service-operations

How do I use ."Include" on a Service Operation for ADO.Net Data Services

I am using ADO.Net Data Services and have a Service Operation that ends up returning the results of some linq to entities statements. As a part of those Linq statements there is a .Include("NavProp") to include a sub-object. When running this service operation it doesn't appear to return that expanded Include. Does anyone know either ...

Consuming Service Operations of an ADO.NET Data Service from a .NET Client

I am trying to build an ADO.NET Data Service with lots of entities and a few service operations. On one side I created a ASP.NET Web Application, in which an ADO.NET Entity Data Model and an ADO.NET Data Service are located. On the other side I created a second ASP.NET Web Application that has a Service Reference to the Data Service. En...

WCF Service Operation does not expose data as queryable

I have a service operation of the form: [WebGet] public IQueryable<BusinessObject> BusinessObjectsByType(string name) with access rule config.SetServiceOperationAccessRule("BusinessObjectsByType", ServiceOperationRights.All); When I access this service operation through a web browser, it exposes the data but not in feeds and entrie...

Unable to return custom class from WCF Data Service

I am trying to return a custom class from my WCF data service. My custom class is: [DataServiceKey("ID")] public class Applist { public int ID { get; set; } public string Name { get; set; } } My data service looks like: public static void InitializeService(IDataServiceConfiguration config) { config.RegisterKnownType(typeo...

ODATA Consume Service Operation from C# ASP.NET 4.0

I am connecting to an ODATA Service via a C# ASP.NET application, which has service operations such as: GetItems(int? itemID, double? price) I can consume this without issues in my browser, e.g. http://api.mycompany.com/companycatalogue/GetItems?itemID=4 I understand how to use LINQ to Entities to consume an ODATA service, but can'...