wcf-data-services

how to generate client proxy class of a wcf service that will work in the .net 2.0

╄→гoц情女王★ 提交于 2019-12-09 22:27:05
问题 I have to use a wcf service in the ssis script component which is developing in BIDS 2005. For this i have generated the proxy class of that service using svcutil.exe . After attaching the proxy class in the script component it has error of some class such as System.Runtime.Serialization.DataContractAttribute is not defined. Any suggestion how can i resolve this issue.. Or can wsdl is used to genrate proxy class of wcf service. so that it can be used in the .net 2.0. Thanks 回答1: Finally after

Resource not found for segment 'Property'

筅森魡賤 提交于 2019-12-09 14:22:07
问题 When using ADO.Net Data Services client to refresh an entity by calling the LoadProperty : ctx.BeginLoadProperty(this, "Owner", (IAsyncResult ar) => ... It throws an error on the server if the property is null Error: Exception Thrown: System.Data.Services.DataServiceException: Resource not found for the segment 'Owner'. at System.Data.Services.RequestDescription.GetSingleResultFromEnumerable(SegmentInfo segmentInfo) at System.Data.Services.DataService1.CompareETagAndWriteResponse

Entity Framework and sharded database

元气小坏坏 提交于 2019-12-09 12:59:53
问题 I have a WCF Data Service running on top of a Entity Framework code first 4.1 provider. The database is quite large (one key table has 77+ million records and grows by ~10% per month) and has presented quite a performance problem. While sharding a database that large is a pain it seems inevitable. My question is, has anybody successfully implemented EF with a sharded database and, if so, do you have any guidance? 回答1: Have you investigated the following options: Clustering your DB (I assume

Proper way to call nested Expand() from .NET OData 4 Client

北战南征 提交于 2019-12-09 10:26:57
问题 Problem In an OData 4 service on Web API, what is the proper way to call nested $expand from a .NET client? We are using the OData Client Generator. Back in the prior WCF Data Services with OData 3 service we could call .Expand("Customers/Orders") . In Web API with OData 4 we can no longer do so and receive the following should you attempt .Expand("Customers/Orders") : The query specified in the URI is not valid. Found a path traversing multiple navigation >properties. Please rephrase the

Expand in a Projection (Select) for WCF Data Services (OData)

纵然是瞬间 提交于 2019-12-08 15:40:05
问题 Say I have an OData query that looks like this (My actual query is much more complex): Orders.Select(z => new { z.SubOrder.Addresses, z.SubOrder.Cost, z.SubOrder.SubOrderId, z.Sequence}); This works fine. Except that the Address object has a sub object on it (StateRef). Since StateRef does a look-up on the State table, it is returned as null. To illustrate, here is an example of how the address object Address might look: Address: string Street 1 string Street 2 StateRef PrimaryState string

ADO.NET Data Services with Linq-to-SQL

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-08 14:40:04
问题 I am encountering a weird error when using linq-to-sql with ado.net data services. I have a simple silverlight application that connects to a remote database. I first added the linq-to-sql class and dragged a table onto the designer. Then I added a ADO.NET Data Service, updated the DataService reference to point to the L2S Data context. Compiled with no problems. When I open the service in IE I immediately get an error so I add the following attribute to the data service: [System.ServiceModel

Empty svc file using WCF Ria Services and ADO .NET Data Services

二次信任 提交于 2019-12-08 13:37:37
I have a WCF RIA project getting my data from an SQL Server 2008 via Entity framework. Everything is going well. However I would like to access data via a windows mobile so, as far as I can understand I have to create an ADO.NET Data Service. My domain service is called BusinessLogicDomainService.cs. Immediately after creating the corresponding BusinessObjectsDataService I write this: public class BusinessObjectsDataService : DataService<BusinessObjectsDomainService> { public static void InitializeService(DataServiceConfiguration config) { config.SetEntitySetAccessRule("*", EntitySetRights.All

How to implement “get latests changed items” with ADO.NET Data Services?

为君一笑 提交于 2019-12-08 11:59:05
问题 Lets say I have a lists of entities (for example, a list of TODO items) that more than one user can change, delete from and add to at the same time. So to maintane a synchronized listed between all the clients, I want each client (AJAX based) to ask for changes every xx seconds. Since the list can get veeery long, I do not want to do a full request each time, but only ask for the changed items (items can be updated, deleted or new). Is it possible with ADO.NET Data Services? If so, how do I

WCF Data Service and Azure Table Storage: How can I use PartitionKey / RowKey as primary keys

空扰寡人 提交于 2019-12-08 09:58:43
问题 Why does the following code of my entity "Person" generates an error in my WCF Data Service: [System.Data.Services.Common.DataServiceKey("PartitionKey", "RowKey")] public class Person : TableServiceEntity { public string Name { get; set; } public int Age { get; set; } ... etc Error: Request Error The server encountered an error processing the request. The exception message is 'On data context type 'PersonDataServiceContext', there is a top IQueryable property 'Person' whose element type is

Breeze $filter projections

雨燕双飞 提交于 2019-12-08 07:34:12
问题 I am having an issue trying to filter data because breeze is adding the $filter clause at the end of the URL and the WCF\odata service is throwing filter cannot be after select clause. public IQueryable<order> Orders() { string owner= Membership.GetUser(Thread.CurrentPrincipal.Identity.Name).owner; IQueryable<Consigne> q = this.db.Consignes // .AddQueryOption("Dest", dest) .Where(x => x.Owner == owner) .Select(f => new order{ Name= f.Name, Address1 = f.Address1, Address2 = f.Address2,