ado.net-data-services

ADO.NET DataServices with Prism

I've start using prism with silverlight 3, but, we are trying to implement it to work with ADO.NET DataServices. The "DataServiceQuery" query type required to use with Silverlight, requires a Asyncronous call to be fired after the query. This will break ous Prism Pattern by what I can see. Any ideas to get only the data of the query to u...

What is purpose of UpdateObject for Linq to REST?

When one is using ADO.NET Data Services and consuming it via the Linq to REST (formerly Project Astoria), it doesn't seem to be as intuitive as it could be. Namely, with normal Linq to SQL, the DataContext monitors objects and tracks changes, so a simple SubmitChanges() call will actually submit all my changes. But with Linq to REST, I...

Returning Entities + Extra Data with ADO.NET Data Services

Trying to figure out the best way to accomplish this. So I have a table of Stores with properties: StoreID, Name, Latitude, Longitude, etc. I'm using ADO.NET Data Services (Astoria) to create a web service that will show nearby stores given a radius and a coordinate. I made a Service Operation to take the params and return the result...

ADO .net Data Service error 'undefined' is not a supported HTTP method in IE8

Edit1:This error is caused by this bug and solved. I am using ASP .net Ajax Library and their CDN. The code is like this var dataContext; Sys.require([Sys.scripts.Templates, Sys.scripts.DataContext], loadComplete); function loadComplete(features) { //create a datacontext to adonet data service dataContext = $create(Sys.Data.A...

Reusing Types between ADO.NET Data Services and WCF service in Silverlight

I have an ADO.NET Data Service and a regular WCF service. I'm using both these services in a Silverlight application. The WCF sercvice has an operation which has a parameter of the same type as an entity returned by the ADO.NET Data Service. The problem is that silverlight generates different types for the WCF service and for the ADO.NE...

Ado.Net Entity Framework Code-Only with Ado.Net Data Service

Im using the pre release of Ado.Net and can't understand how I use that with Ado.Net Data Service. The code for the ObjectContext public class TradingContext : ObjectContext { private static TradingContext _Context; public static TradingContext Current { get { if (_...

What are the steps to read an object from an ADO.net data service?

Hi, I'm new to ADO.net data services (and to .net in general too..), I'm having this project where I need to setup a data service to read and write to a database with nHibernate, I've created the service: [WebGet] [SingleResult] public Factory Factories(int Id) { try { Factory[] results = this.Cur...

How to make apps access my model without have to spread my model DLLS through them

I have an architectural question. We have many applications in our company and we are planning to use ASP.NET MVC and Entity Framework in our future projects. The next project that we need to implement is a central authorization/authentication system. There is no option to use an existing one for reasons that doesn't mater right now. Thi...

S#harp architecture mapping many to many and ado.net data services: A single resource was expected for the result, but multiple resources were found.

Hi, I'm developing an application that reads data from a SQL server database (migrated from a legacy DB) with nHibernate and s#arp architecture through ADO.NET Data services. I'm trying to map a many-to-many relationship. I have a Error class: public class Error { public virtual int ERROR_ID { get; set; } public virtual string E...

ADO.NET Data Service API Versioning

Hi guys, We created an ADO.NET Services on top of our EDMX file as the main entry point for our central application. In the near future a lot of distinct applications will show up and consume our REST Service. So far, so good but there is one thing I'm missing. I don't want to update all my consumers each time a new version of the ADO....

Using Generic Methods with a WebService like WCF or ADO.NET Data Services

Is it possible to use generic methods with WCF or ADO.NET DS? Or is it possible to create a generic WebService Repository with WCF or ADO.NET DS? ...

Load a property in a batch in ADO.Net Data Services in Silverlight

I'm using ADO.Net Data Services (Astoria) in Silverlight 3 and I want to delay loading properties on an entity until after the initial load. However, when I'm ready to load them I'd like to batch the load requests together. // this is what I want to avoid var c = (from c in ctx.Customers.Expand("Address,Phone,Email") where c.I...

Data Services Update for .NET 3.5 SP1 breaks clients, any ideas on rollback?

Ok... serious problem. I did the update, thinking that I could continue to use the CTP2 version of Microsoft.Data.Services.Client the library to connect till they updated the Silverlight bits. No go. Ok, I can live with that. I rolled back the service to the CTP2 libraries ( Microsoft.Data.Services + Microsoft.Data.Services.Client ) re...

Are "WCF Data Services" going in the right direction?

I really like the idea of "WCF Data Services" but how does it work in a real life scenario? WCF Data Services provide just a nice way for the client to CRUD the data. However it's very limited in what you can pass and get back. So one ends up having all the business logic written on a client side. It's probably ok for small applications ...

Any way to use ADO.NET Data Services 1.5 CTP2 with VS2010? Even manually?

Hey all! For various reasons I have clean installed my dev box and it is running Win7 x64 and currently has VS2010 installed. I am maintaining several projects that require the use of the 1.5 CTP2 release services, under .net 3.5 (obviously). I have already taken the steps needed to install the full 1.5 CTP2 under Win7. While I underst...

ADO.NET Data Services Sample -> Exposing CLR Objects -> Code in Separate Assembly

I am trying to create a simple ADO.NET Data Service sample using CTP2. If I create a web site and add a ADO.NET Data Service Template and put all the code there everything works fine. However I would like to put all there code in a separate project and add it as a reference in my web project. And in my web project I would like to add the...

ADO.NET Data Services on Silverlight: Using the generated key within the same transaction

We have a Silverlight application that uses WCF Data Services. We want to add logging functionality: when a new row is generated, the primary key for this new row is also recorded in the logging table. The row generation and the logging should occur within the same transaction. The primary keys are generated via the database (using the I...

Uploading and downloading files using wcf data services?

I have been trying to find information regarding if it is possible to upload and download files using WCF Data Services (formerly ADO.NET Data Services), but haven't been able to make any leads due to perhaps less help content available on wcf data services on the web as of now. Is it possible for us to write a wcf data service so that ...

ADO.Net Eager Loading Recasting Into Entities

I'm using Eager Loading to bring back 2 types of entities that I later want to put into IEnumberables of the respective types to do work with. crocodileEntities proxy = new crocodileEntities(new Uri("CrocodileDbDataService.svc", UriKind.Relative)); var ProjectionsQuery = from OptionARMRuns in proxy.OptionARMRuns.Expand("OptionARMRunI...

ADO.NET Data Services - propagate changes across tracked lists?

So here is the situation. I am using ADP.NET Data Services 1.5 CTP2 with Silverlight 3. My EF data model is (in short) like this: CmsProfile Id Name CmsEvent Id Title CmsProfileEventLink Id ProfileId EventId So there is a many <-> many relationship between people and events. When I load the ...