Contents tagged with LINQ
-
Code from My ASP.NET Connections Talks
-
Speaking on Silverlight 2 at the Hawaii .NET User Group
-
What If I Don’t Call Dispose() on my LINQ to SQL DataContext Object?
I’ve written a few posts about LINQ to SQL and am generally a big fan of the technology (even with its weaknesses) since it’s very productive. After creating a custom DataContext object using the LINQ to SQL designer (or one created by hand) I always ensure that the object is wrapped in a “using” statement so that the Dispose() method is called:
-
Desert Code Camp Is This Saturday (May 31st)
-
Working with the GridView and the System.Data.Linq.Binary Type
I'm working with a database table that has a RowVersion field defined as a TimeStamp data type. The TimeStamp field is there to add concurrency into the application to ensure a row hasn't changed while a user is trying to update or delete it. When the TimeStamp field value is queried and added into the LINQ to SQL generated object it adds it adds the data as a System.Data.Linq.Binary type as opposed to a byte array.
-
Service Pack 1 Beta Released for Visual Studio 2008 and the .NET Framework 3.5
Microsoft just released the SP1 beta for Visual Studio 2008 and the .NET Framework 3.5 and it includes a huge number of new features and enhancements. Check out Scott Guthrie's blog for details but here's a quick list of what's included:
-
Using LINQ to Perform "WHERE IN (Value1,Value2)" Queries
I recently needed to select a few products from a database where the product ID matched up with a list of IDs. That's easy to do with a normal SQL statement since you can use the "WHERE IN (Value1,Value2)" clause to find what you need. However, I wanted to do it with LINQ in this case.
-
Orlando 2008 DevConnections Talks
-
Silverlight 2 Networking Options
I've been spending my nights working on a new book covering Silverlight 2 and have been focusing on the new networking features that are available in the System.Net and related namespaces. Silverlight's great at animating objects, performing transformations and collecting data with all of the new controls that are available, but at some point you'll need to retrieve data or send data to a service. There's great support built-in for calling WCF services, ASMX services as well as other services. Support for calling REST APIs is also very good and easy to implement using classes such as WebClient and HttpWebRequest/HttpWebResponse. Asynchronous requests can be issued and handled quite easily once you figure out the pattern (which is quite consistent throughout the different networking classes).
-
Interesting 3rd Party Controls and Demo Applications for ASP.NET and Silverlight
I'm one of those developers that likes to build things myself mainly because the challenge is fun. However, lately I've been taking time to look at some of the 3rd party controls out there mainly because some of the things I've needed to do are already done (and done well) and I'd save time and money by using them. I'm not against re-inventing the wheel if I think I can do it better, but that's impossible for many things especially when companies are throwing multiple developers at a single control or framework. So, here are a few of the 3rd party controls and/or sample applications that I've come across recently that were interesting.