Monthly Archives: April 2011

LINQ to SQL Extension Methods

LINQ to SQL is a powerful component of .NET, however, I often find myself duplicating the same code across projects. I created the following extension methods to make common operations easier to use. The class adds generic methods for Delete(), Save(), Exists(), and IsAttached(). The IsAttached() method is required to make sure that the data...… read more