Well I'm finally opening a real blog. Not sure how much I will be updating this but hey I have a real online presence again. The old J-Maxx Net will stay as it is. Still get a decent amount of traffic on there (kicking myself for not installing adsense years ago).
To start off with.. I love LINQ. I've been looking into it for over a year now but finally have a project where I get to use it fully. C# 3.0 has added so many features I no longer pine for PHP as I once did. Here's a sample below of something I wrote the other day.
var result = from c in CurrentDataContext.Categories
join localinfo in CurrentDataContext.CategoryLocalizationInfos
on c.CategoryID equals localinfo.CategoryID
where c.CategoryID == CategoryID
&& localinfo.Language == Language
select new Business.Data.Category()
{
ID = c.CategoryID,
Description = localinfo.Description,
Languages = GetLanguagesForCategory(c.CategoryID),
Name = c.Name,
SortOrder = c.SortOrder,
Title = localinfo.Title,
NavImage = c.NavImage,
Language = localinfo.Language,
Links = GetLinksForCategory(c.CategoryID, Language),
IsDataLoadedFromSql = true
};