astoria

Astoria vs. SQL Server Data Services

What are in your opinion big differences between areas of usage for "Astoria" (ADO.NET data services) and SQL Server Data Services? ...

Substituting Astoria Payload?

I'd love to use data services to publish read only data over http. What I'd really like is the ability to provide different shaped bits of xml that represent whats in my db using filters, expand etc. What I don't really like is the 'goop' in atom, I know that json is a bit lighter but what I'd really like to do is whack in my own seria...

ADO.NET Data Services .NET client caching

On my service, I've added the following method: protected override void OnStartProcessingRequest(ProcessRequestArgs args) { base.OnStartProcessingRequest(args); HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.Public); HttpContext.Current.Response.Cache.SetMaxAge(new TimeSpan(1, 0, 0));...

Why does ADO.NET Data Services use $ as query param identifier?

/Customers?$skip=30&$top=10 Is there a reason why you need '?' or '&' AND '$' to identify a query parameter? Is this a case of the implementation leaking into the interface? I dont necessarily want to expose to users the blatant fact that I'm using .NET Data Services. especially, if at a later date I want to change the implementation ...

Ado Net Data Services BeginExecute Problem

public void metodoX() { foreach (TURNO t in listaTurnoPersona) { DataServiceQuery<VST_CANTIDAD_PERSONAS_POR_DIA> query = General.Entities.VST_CANTIDAD_PERSONAS_POR_DIA.Where( z => z.ID_TURN == t.ID_TURN && z.FE_CALE >= RadDatePicker1.SelectedDate.Value && z.FE...

Ado .net data services in the same app

I have an application with an EDMX and an Ado .net data service in it. I would like to make a call from the same application (not an http call) to the ado .net data service and would like to use the url like syntax to query using a string of filters that have been built up programatically: public class AdventureWorksService : DataServic...

How do I wire up a WebForm to a ADO.NET Services "resource"?

I know I could use WebClient or WebRequest, but somehow this feels like using WebClient or WebRequest to do a postback or a crosspage postback. What do I need to do to get a WebForm to "post" to a ADO.NET service, which is expecting a different verb and has a different URL? I googled this but couldn't find anything to enlighten me. ...

Astoria Error - Expected an absolute, well formed http URL without a query or fragment.

I'm trying out my ADO.NET Data Service for the first time by having the model create using Entity Framework. I am testing to see if the service works via a client by creating a simple console application. Here is the body of my Main method: MyEntities context = new MyEntities (new Uri("MyEntitiesDataService.svc", UriKind.Relative));...

ado.net data services silverlight security

I have a application where the validation is done in the web server side (in the page). and the control is passed to the sl client. The SL client makes call to the ado.net data services for its query and wcf service for writing to the DB. How should I handle the security of the ado.net data services? I use http://programmerpayback.com/2...

How do I implement IDataServiceMetadataProvider and tell my Data Service to use that custom provider?

There's no obvious entry point for implementing a custom provider for an ADO.NET Data Service using IDataServiceMetadataProvider, and then telling a Data Service to use that provider. Has anyone had any luck in this area? I've tried implementing this interface on my Data Source class, but none of my breakpoints are hit. There is also no ...

ADO.NET Data Services - Uploading files

I am trying to write REST web service through which our clients can upload a file on our file server. IS there an example or any useful links which I can refer for any guidance? I haven't seen many examples of POST operation using ADO.NET data services available. ...

Silverlight 3 Toolkit DataForm - No Cancel enabled?

Hey all! I have a Silverlight 3 datakit:DataForm bound to a ADO.NET Data Service 1.5 CTP2 datasource via the ItemsSource. A fragment is below... var programs = DataServiceCollection.CreateTracked( dashboardService, query.EndExecute(asyncResult)); this.ProgramEditForm.ItemsSource = programs; My DataForm definition is dea...

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...

WCF Data Service (ADO.Net Data Service or Astoria Service)

Does Astoria Service Model only support ATOM,JSON,XML,XML+HTTP Are formats like SOAP,WSDL,ASMX outdated? .So when i wish to develop SOA can i ignore SOAP,ASMX,WSDL formats? ...

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 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 ...

Using REST WCF data service as a data source for SQL Reporting services

Guys, can anyone point me to a definitive Microsoft map for where Reporting Services is going regarding using WCF Data Services (ADO.NET Data Services, Astoria) as a data source? There's bits of fragmented info out there, some about creating custom data providers, some about some sort of extension enable connection to the Azure storage l...

How do I interact with OData from Java?

OData is Microsoft's repackaging of its Astoria (now WCF Data Services) RESTful query/update protocol. If I want to use Java to create an OData compatible data source, how do I do that? Similarly, if I want to consume an OData data source from Java, how do I do that? http://www.odata.org/ Partial answer below. The OData website sugges...

IDataServiceMetadataProvider / ResourceType.... what for dynamic types with no CLR type?

Hello, I try to expose a database via ADO RIA for which we have only an ODBC based interface. The "database" is a server and new elements are developped all the time, so I would like the server to check metadata at start (using the odbc schema methods) and then expose what he finds via RIA services.... clients can the nregenerate when t...