Geeks With Blogs
Frank Wang's inspirations on .NET
IEnumerable<Inspiration> inspirations = from i in DataContext.Inspirations where i.Sharable == true select i
August 2008 Entries
Serialization issue with timestamp in LINQ to SQL
Many of you use timestamp in LINQ to SQL because it's easier for us figure out if an object is new or not. This is specially useful when we need to track the state of objects in disconnected/N-tier scenarios. An important thing to note, though, is that the timestamp column is mapped as a System.Data.Linq.Binary property in the LINQ generated object so it is part of the XML serialization when you use the LINQ to SQL objects in Web Services/WCF services. The real problem is that System.Data.Linq.Binary ......

Posted On Friday, August 29, 2008 7:14 PM

My experience of VS 2008 SP1 installation: not so smooth
The release of VS 2008 SP1 last week was a bliss for .NET developers. Many professionals shared their installation experience on their blogs. Very few of them had a lot of troubles getting the long awaited service pack up and running, despite the lengthy process of the installation. My personal experience was not terribly painful as I anticipated, but it didn't go very well in the beginning either. This has nothing to do the setup package but has everything to do with the beta stuff I had on my box. ......

Posted On Monday, August 18, 2008 1:27 AM

How to configure maxJsonLength in ASP.NET AJAX applications
Invoking web methods from client scripts is fun. But before you roll out your cool applications into the production, please don't forget to reconfigure the max JSON string length, represented by either the maxJsonLength value in the web configuration file or the MaxJsonLength property of the JavaScriptSerializer class. The maximum length of JSON strings, by default is 2097152 characters, which is equivalent to 4 MB of Unicode string data. This should be good enough for most of the web applications. ......

Posted On Tuesday, August 5, 2008 5:10 PM

Copyright © Frank Wang | Powered by: