From Steve McConnell’s blog:

"It’s like in software design when you’ve been considering numerous mediocre design solutions and carefully studying strengths and weaknesses and deciding which lesser evil you want to go with. And then finally somebody says, "What if we just do this?" And you slap your forehead and realize that it should have been obvious the whole time, except that you’ve spent hours thinking about it and it wasn’t obvious at all until someone else had the idea."

So, it looks like Linq, …

var configurationData = from ConfigurationData o in unitOfWork
                        where o.ConfigurationDataId == configurationDataId
                        select o;
return configurationData.Single();

… smells a little like SubSonic,  …

Order order = new Order();
order.OrderGuid = Guid.NewGuid();
order.OrderTypeId = 1;
order.OrderParentId = 1;
order.OrderStatusId = 9999;
order.ShippingAmount = 10;
order.HandlingAmount = 10;
order.IPAddress = "127.0.0.1";

… tastes a little like LightSpeed, …

using (var unitOfWork = context.CreateUnitOfWork()) {
  var configurationData = from ConfigurationData o in unitOfWork
                          where o.ConfigurationDataId == configurationDataId
                          select o;
  return configurationData.Single();
}

… and it weighs in at a lean, mean 92KB.

What is it?

DotNetKicks Image