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 [...]
Posts Tagged ‘web-service’
$filter Query Option in ADO.NET Data Services
Posted in Uncategorized, tagged ado-net, ado.net-data-services, filter, query, service, web-service on 2009/07/16 | 1 Comment »
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 [...]
InitializeService in ADO.NET Data Services
Posted in Uncategorized, tagged ado-net, ado.net-net-data-service, debug, entity-framework, IncludeExceptionDetailInFaults, InitializeService, service, web-service on 2009/07/15 | Leave a Comment »
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 [...]
ADO.NET Data Services Viewer Tool
Posted in Uncategorized, tagged .net, ado.net, ado.net-data-service, data, development, microsoft, service, utility, web-service, web-service-utility on 2009/04/01 | Leave a Comment »
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 [...]
Kobe: Web 2.0 Service Development Resource Kit
Posted in Uncategorized, tagged .net, architecture, kobe, kobe-project, microsoft, resource-kit, web, web-service on 2009/03/20 | Leave a Comment »
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 [...]