Tag: dotnet

What you must avoid in LINQ to SQL one to many associations

Posted by – December 8, 2008

Last saturday I spent few hours trying to figure out the reason of a very annoying bug that was happening with my WCF Service, for several times if got the same error: “The underlying connection was closed: The connection was closed unexpectedly.”.

The root cause of this bug was a LINQ to SQL query in my WCF service that was retuning a large list of objects, I tried to set maxItemsInObjectGraph of dataContractSerializer, but with no success. My LINQ model contains some onetomany associations that was generating both child and parent properties, this setting was causing the generation of infinite number of object references in my LINQ resultset, after disabling the generation of child property of all onetomany associations the error gone.

Share

Back with Windows Mobile development

Posted by – May 19, 2008

Today I’m working with four mobile platforms:

At work:

  • Symbian

At home:

  • J2ME
  • Qtopia
  • Windows Mobile

After some years without touch in Visual Studio .NET and a little far away from Windows Mobile development, I’m finally back, now working on a small project for use in restaurants using a wi-fi connection.

I’ll post some of my challenges in this project when possible.

Share