Using The LINQDataSource

There is a new datasource control available in Visual Studio that works in much the same way as the SQLDataSource and the ObjectDataSource.  While I would argue that the LinqDataSource is better than the SqlDataSource, I’m not yet ready to say that it is better than the ObjectDataSource.  And, until I do a bit more experimenting with this new control, I’ll probably still use the ObjectDataSource.

However, there are some of you who are probably using the SqlDataSource who should probably move to the LinqDataSource ASAP.  Here’s the basics of how you use this new control.

Related Post

  • Is LINQ Multi Layered?Is LINQ Multi Layered?
    Several weeks ago, we discussed the point of Multi-Layered Architectures.  We discussed what a multi-layered architecture looks like, and the problems it solves. Today, what I want to examine ...
  • DotNetNuke Modules – Creating Base ModulesDotNetNuke Modules – Creating Base Modules
    Now that we have DotNetNuke installed into Visual Studio we can go ahead and create our first modules. Actually, creating the modules is pretty simple. But it is even easier to do it wrong, which...
  • Multi-layer LINQ via Extension PointsMulti-layer LINQ via Extension Points
    As promised a few days ago, I will be covering multi-layered architecture as it relates to LINQ. The first thing we need to evaluate is how Microsoft intended multi-layered architecture to work.&#...
  • Partial Classes and Partial MethodsPartial Classes and Partial Methods
    In order to understand how Microsoft intends LINQ to be used in a multi layered architecture, we first need to take a look at partial classes, which have been around since .NET 2.0, and the new par...
  • How to code LINQHow to code LINQ
    Today we finally put all the code we've been looking at for the last couple of weeks into practice and take a look at LINQ.  Today's example will be relatively brief but once you understand the und...