Feeds:
Posts
Comments

Archive for July, 2009

Great primer on sending email in .NET, with code snippets.
Some 15 years later things have become quite a bit easier. Sending an e-mail is as straightforward as calling a few basic library functions and .NET of course includes a solid implementation.
via Using C# and .NET to send an e-mail through SMTP | Martijn’s C# Programming [...]

Read Full Post »

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

Read Full Post »

This looks very useful for anyone (poor wretch) wrestling with the Entity Framework.
EdmGen2 is a command-line tool for the Microsoft ADO.NET Entity Framework. The tool can be used as a replacement for the EdmGen.exe tool that ships with the .Net framework 3.5 SP1. EdmGen.exe can only read and write the CSDL, SSDL & MSL file [...]

Read Full Post »

After inquiring on the official forums about new features in Entity Framework 4.0 around join tables this is what I heard back. In short, no new news. Which is too bad. Our model doesn’t really model entities until we have some way of hiding the join tables or otherwise demoting them to second-class [...]

Read Full Post »

Quick overview of the alternatives for querying using ado.net data services.
Use LINQ to ADO.Net Data Services to query the service. Again, since the DataServiceQuery is an IQueryable, you can use LINQ syntax to query it:
var query = (from p in svc.Posts
where p.PostID > 3
orderby p.PublishDate
select p).Skip(2).Take(2);
via Querying using DataServiceContext and DataServiceQuery – linyusen的专栏 – CSDN博客.

Read Full Post »

My service is broke-a$….er I mean my friend is having issues with his code and this is the link I sent him.
By default, Data Services don’t return information on what’s wrong when you try to execute some code, for example an update, against it. This is understandable: if you open up a data service on [...]

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

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

Read Full Post »

I was just harshly reminded of the dark ages of software development, a time I only hazily recall as involving black-screened terminals that were constantly loosing, leaking, or not releasing something important, when I just tried to use Visual Studio 2010 only to discover that Intellisense wasn’t working. Not getting any further than “Hello Wo…  [...]

Read Full Post »

Given the amount of time it seems I spend working on data access related code I’d be very interested in what solutions the community is coming up with as an alternative.
Enthusiasts Convene To Say No To SQL, Hash Out New DB Breed
via Slashdot Technology Story | Enthusiasts Convene To Say No To SQL, Hash Out [...]

Read Full Post »