Posts Tagged ‘web-service’

Find yourself just needing the darn data rather wasting time with lazy this and that? Give .Include (or .Expand I believe fora data service query) a try.

If you want to do eager loading with the Entity Framework it is generally really easy, you simply write something like this:

var results = from post in ctx.Posts.Include(“Comments”)
where post.Author.EmailAddress == “alexj@microsoft.com”
select post;

via Meta-Me : Tip 22 – How to make Include really Include.


Read Full Post »

ADO.NET Data Services provides filtering options for free.

What can go in a $filter? The most basic thing to do is to test properties of the resources we’re returning, which you can access simply by name, like we have done above. Literals for things like strings and numbers use the same syntax as in the key portion (see my last post and the original URL post for more details).

via Marcelo’s WebLog : $filter Query Option in ADO.NET Data Services.

Read Full Post »

Need to debug an ADO.NET Data Service?

Another interesting point has to do with error handling. The option for error handling is set during InitializeService. If an exception is thrown while InitializeService is being called, we don’t trust whatever was set on the configuration, and instead of the ADO.NET Data Service error handling kicking in, we’ll let the exception bubble out. Typically the service will be running as a WCF service, which means you’ll get the error page with the blue band on top (when viewed in a browser). To get detailed errors in this case, you can do something like this.

[System.ServiceModel.ServiceBehavior(IncludeExceptionDetailInFaults = true)]

public class YourService : DataService

{ … }

via Marcelo’s WebLog : So Special – InitializeService in ADO.NET Data Services.

Read Full Post »

Haven’t given this a try yet but I definitely plan to soon.

I build this tool to help me build ADO.NET Data Services URL query ( for example http://e4d.com/Courses.svc/Courses?$orderby=Date/ )

and to see the result. this is first version, please send feedback…

Key Features:

1. URL IntelliSense

2. URL Tooltip

3. Data Grid View

4. XML Atom View

5. Data Service Metadata View

via ADO.NET Data Services Viewer Tool – Home.

Read Full Post »

Microsoft’s vision of the Web 2.0 world. Doesn’t seem to be much blog discussion of this yet, I’m hoping the sample code will give my spinning wheels some traction.

Project Kobe is a getting started resource kit for planning, architecting, and implementing Web 2.0 applications and services using the Microsoft Platform. This resource kit is targeted toward technology decision makers, hands-on solution architects, development managers, and developers in the aspiring web startups community and in enterprises and businesses looking to invest in new Web 2.0 application/service development projects.

via Kobe.

Read Full Post »