Browse by Tags

17 April 2008
Short and Sweet "Silverlight 2.0, LINQ and WCF in 5 Minutes" Video
Download Source This is the first video in my new "Short and Sweet" video series. I'm going to continue with Silverlight, LINQ and WCF path for the series. Please ping me if you have an idea for a future video. This video takes you through the minimum Read More...
02 December 2007
LINQ: Sequence contains no elements. InvalidOperationException when calling Single
If you call Single to get an object from your DB and the object doesn't exist you will get an InvalidOperationException. return this .DataContext.MemberDaos.Single(m => m.MemberID == id); Instead of Single, use SingleOrDefault, which will return null Read More...
8 Comments
Filed under: , ,
 
01 December 2007
LINQ: "Add" renamed to "InsertOnSubmit"
If you are using LINQ to insert data with RTM bits you won't find the Add method on the DataContext post Beta2. Use the InsertOnSubmit method instead. Read More...
6 Comments
Filed under: , ,
 
25 November 2007
LINQ and Web Application Connection Strings
It's usually a good idea to seperate Biz Layer Objects and Data Access Objects into seperate assemblies, but when you do that and use LINQ to SQL (.dbml) files the DataContext object default ctor uses the Settings file that is automattically generated Read More...
Page view tracker